Okay here's a solution I worked out with the owner of the VI Lover's website
(heh) .. 

Uhmm .. okay firstly exclude the colon from any commands (such as :map) when
adding stuff to the vimrc .. 

Now here are a few more mapping commands, it seems like you can map the keys to
react differently in different modes .. 

nmap #map keys in normal mode 
imap # map keys in insert mode 
vmap # map keys in visual mode (you probably dont even use Visual) :) 

So you can add the following lines to your vimrc

To kill the keys in normal mode (command mode) append the following to your
vimrc: 

nmap <Up> <Esc>
nmap <Down> <Esc>
nmap <Left> <Esc>
nmap <Right> <Esc>

And as for the keys in insert mode (insert, append etc) .. 

imap <Up> <Esc>
imap <Down> <Esc>
imap <Left> <Esc>
imap <Right> <Esc>

Hope this helps the few people that give a damn :) .. 

Oh yeh .. if you want to use $ and 0 rather than HOME and END you can try the
exact same thing only it seems like <Home> does not work .. you can always use
CTRL-V [END-KEY] and CTRL-V [HOME-KEY]  though to get the key code.

It got me using the HJKL keys in a day or so .. you can also try the unix game
Rogue and some versions of Nethack, they all use they HJKL keys.
Gnibbles (that nokia snake game :) with the keys reconfigured !

I've had a few tries at modifying the source (term.c especially) in VIM 5.7 ..
but it didnt seem to do much :\ 

Regards, Matt
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to