Notices


Reply
Thread Tools
Posts: 145 | Thanked: 88 times | Joined on Nov 2009 @ Copenhagen
#1
Using GNU emacs for almost everything on my full size computers, the Vim experience on the n900 is a new world to me.

I know I can also run emacs on the n900, but Vim's modal approach simply seems more adequate on a device with a quite limited keyboard.

I have read up on customizations and have also installed the latex-suite, but would like to hear if any of you more experienced Vim users have some n900 specific tips for customization. How do you e.g. deal with the lack of the function keys (F1, F2 etc.) in the latex-suite where they seem to be used quite thoroughly for completions and similar stuff.

Looking forward to getting tips and tricks from experienced Vim users regarding these customization issues.

Best regards
 
Posts: 543 | Thanked: 181 times | Joined on Aug 2009 @ Universe,LocalCluster.MilkyWay.Sol.Earth.Europe.Slovenia.Ljubljana
#2
I just use the same config I use on my desktop.

Can look at it here
http://ruskie.codemages.net/cgi-bin/....git;a=summary

And check it out using git here:
http://ruskie.codemages.net/repos/configs/dot-vim.git
 

The Following User Says Thank You to ruskie For This Useful Post:
Posts: 145 | Thanked: 88 times | Joined on Nov 2009 @ Copenhagen
#3
Thanks a lot, I will have a look at it tonight:-)

Regarding latex-suite, it will probably pay off to use IMAP quite intensively so that I can create snippets for environments etc.

You wouldn't now how to get <F9> mapped to e.g. "ćć" in insert mode, would you? (I tried "imap ćć <F9>", but that doesn't work (it just inserts "<F9>" literally).
 
Posts: 543 | Thanked: 181 times | Joined on Aug 2009 @ Universe,LocalCluster.MilkyWay.Sol.Earth.Europe.Slovenia.Ljubljana
#4
Could probably set it on the desktop using in insert mode: ctrl+v F9 and then moving that to the n900
 
Posts: 486 | Thanked: 251 times | Joined on Oct 2009
#5
I installed vim last night and it works great when I ssh in to the n900.

Today, I tried it on the n900 directly, both in an xterminal and by tapping on its icon on the desktop.

I can start appending text, but the return key inserts an M on the line above, up arrow inserts A on line above, and B, C, D for the other arrow keys.
 
Jaffa's Avatar
Posts: 2,535 | Thanked: 6,681 times | Joined on Mar 2008 @ UK
#6
Originally Posted by j.s View Post
I can start appending text, but the return key inserts an M on the line above, up arrow inserts A on line above, and B, C, D for the other arrow keys.
The key codes sent by the N900 and N810 keyboards don't correspond to the termcap properly when in insert mode. If someone can post a solution, we can include it in the vim package proper (I usually just work around it, I'm afraid to say).
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
 

The Following User Says Thank You to Jaffa For This Useful Post:
hopbeat's Avatar
Posts: 516 | Thanked: 643 times | Joined on Oct 2009 @ Denmark/Poland
#7
 

The Following User Says Thank You to hopbeat For This Useful Post:
Jaffa's Avatar
Posts: 2,535 | Thanked: 6,681 times | Joined on Mar 2008 @ UK
#8
Originally Posted by hopbeat View Post
http://talk.maemo.org/showthread.php?p=411455
Thanks! Want to create a postinst for vim.pkg which'll auto-create a /home/user/.vimrc if not already present? (Or a /usr/share/vim/vimrc which gets globally used?)
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
 
hopbeat's Avatar
Posts: 516 | Thanked: 643 times | Joined on Oct 2009 @ Denmark/Poland
#9
Sorry, I have missed this post

Here is the postinst file:

http://www.student.dtu.dk/~s081608/postinst

and basic vimrc:

http://www.student.dtu.dk/~s081608/vimrc

I have added just those basic settings to make vim usable, if you think that we should have some other default settings (intends, autosaving, whatever) I can take care of it.

@Jaffa, can I add this directly to the package somehow?
__________________
Hi! I'm a Maemo Greeter!
Witaj na talk.maemo.org!

Useful links for newcomers:
Użyteczne linki:
Nowi użyktownicy mówią cześć | New members say hello , Tu zaczynają nowi użytkownicy | New users start here, Podforum społeczności | Community subforum, Wiki dla początkujących | Beginners' wiki page, Maemo5 101, Często zadawane pytania | Frequently Asked Questions (FAQ), Google

Jeżeli mogę w czymś pomóc, pytaj!
If I can help with anything else, just ask!

Bored? Follow me
 
Jaffa's Avatar
Posts: 2,535 | Thanked: 6,681 times | Joined on Mar 2008 @ UK
#10
Originally Posted by hopbeat View Post
basic vimrc:

http://www.student.dtu.dk/~s081608/vimrc
Thanks, I'll look at merging these into vim.pkg later.

@Jaffa, can I add this directly to the package somehow?
vimrc needs to go in packages/vim.pkg/extras in MUD and then the XML file modified to tell it where to put it.
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
 
Reply


 
Forum Jump


All times are GMT. The time now is 03:03.