maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   VIM not compatible with non-US keyboards? (https://talk.maemo.org/showthread.php?t=35968)

Untouchab1e 2009-12-05 11:46

VIM not compatible with non-US keyboards?
 
I downloaded Vim, which I really love, but its not working very well with my Norwegian keyboard. While Vi works just fine, Vim types out an M when I hit the return key, and an D (or something) when I hit the down key..

Any way to configure or solve this?

hopbeat 2009-12-05 12:07

Re: VIM not compatible with non-US keyboards?
 
Try
Code:

:set nocompatible
There are also some other issues with vim, haven't really researched them as I primarily use vi

[edit] you can also add
Code:

:set backspace=2
[edit2] to have those changes saved, create file .vimrc in your home folder (/home/user and /root if you are using the latter) and put there

Code:

set nocompatible
set backspace=2

this should make vim more-less usable ;)
Oh, and this is not Norwegian-keyboard related, I have the same issue on my 'standard' layout.

bastler 2009-12-29 15:42

Re: VIM not compatible with non-US keyboards?
 
Your fix works for me, thanks hopbeat. But since I always like to know what I'm actually doing there, could you maybe elaborate a little on what those two commands actually do and why they work on the N900?

Thanks.

P.S.: yes, I know, RTFM, but the vim-manpages are like 500 pages long and I have no clue what I'm looking for, so it would probably take me days to figure it out on my own. I'm hoping for the easy way out, which would be someone already posessing this knowledge taking 3 minutes to explain it to me :)

wolf 2009-12-29 15:56

Re: VIM not compatible with non-US keyboards?
 
In vim:
:he compatible
:he bs

Jaffa 2009-12-29 16:40

Re: VIM not compatible with non-US keyboards?
 
Cross-linking with other relevant thread: http://talk.maemo.org/showthread.php?p=443492


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

vBulletin® Version 3.8.8