Am Samstag, 14. Januar 2006 18:52 schrieb Pierre Habouzit: > 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.
Are you sure? It does not even work under a plain linux login (no x-server started). Surprisingly it works fine under gvim. > 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 Hmm in order to reproduce your solution I've installed xterm and noted SHIFT-RIGHT under vim under xtmrm *removes* lines in insert mode (before and after set t_%i...). ^K<S-Right> prints here [1;2C too. Kind regards Bastian

