Le Sam 14 Janvier 2006 17:46, Bastian Venthur a écrit : > Package: vim > Version: 1:6.4-006+1 > Severity: normal > > With the line: > > source $VIMRUNTIME/mswin.vim > > in your .vimrc the command "behave mswin" gets executed. And you > should be able to enter the visual mode by pressing SHIFT-ARROW (like > in every other modern editor). > > But this does not work with vim under a console (neither KDE-Konsole > nor plain Linux console). But under gvim the selection works as > expected. > > I've googled around and did not find a reason (or hint) why ms-style > selection works with gvim but not with "plain" vim.
this is not related to vim but to your terminal. In konsole, where I have shift+left / shift+right mapped to 'go to next' or 'go to previous tab', vim never receive such a binding. I'm even not sure konsole sends those bindings. I suggest you to read :he term.txt Though, under xterm, e.g., in vim, if I do in insert mode : ^K<S-Right> it prints : [1;2C meaning that vim gets sth from the terminal, but that it has not recognised that it's <S-Right>. :he term.txt show you how to do that right : set t_%i=^[[1;2C and then <S-Right> will be regognized. I'm not sure if it's the best method to do it, and I guess that either xterm or vim miss the right termcap/terminfo to understand bindings right -- ·O· Pierre Habouzit ··O [EMAIL PROTECTED] OOO http://www.madism.org
pgpCvRsWHDwV4.pgp
Description: PGP signature

