Bug#348083: "behave mswin" does not work on console

Pierre Habouzit pierre.habouzit at m4x.org
Sat Jan 14 17:52:11 UTC 2006

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 :


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 
·O·  Pierre Habouzit
··O                                                madcoder at debian.org
OOO                                                http://www.madism.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20060114/bf862e9c/attachment-0001.pgp

More information about the pkg-vim-maintainers mailing list