1 Mar 2006 01:11
Re: vim question
Luis A. Florit <vim <at> luisflorit.endjunk.com>
2006-03-01 00:11:16 GMT
2006-03-01 00:11:16 GMT
* El 28/02/06 a las 15:22, Gerald Lai chamullaba: > >>> 2) how to select text with Shift-cursorkey. > [snip] > >>>For (2), I put > >>> > >>> set keymodel=startsel > >>> > >>>in my .vimrc file, but the screen just blinks and does nothing. > >>>I even deleted my .vim and .vimrc stuff and give this command > >>>alone, with no results. I also tried mixing it with 'selectmode' > >>>with no results either. > >> > >> First guess: > >> > >>:help xterm-cursor-keys > > > >Didn't work, but it explains a loooong wired > >behaviour of the cursor keys that I used to > >have, specially in UNIX. > [snip] > > If you don't mind, you could manually define mappings that would do > that. I have mappings that would visually select words when doing a > Ctrl-Shift-arrow key combination in GVim. > > "down/up selection > nmap <C-S-Down> v<Down> > nmap <C-S-Up> v<Up> > imap <C-S-Down> <Esc>vg`^og`^<Down><Right><BS><BS>(Continue reading)
RSS Feed