Vim arrow keys: Difference between revisions
m (New page: Using rxvt and vim 7.1, sometimes the arrow keys produce 'A', 'B', 'C', 'D' instead of navigating. Adding this to my ~/.vimrc seems to fix the problem. <geshi lang="bash"> :set term=built...) |
mNo edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Using rxvt and vim 7.1, sometimes the arrow keys produce 'A', 'B', 'C', 'D' instead of navigating. | Using Cygwin's [[rxvt]] and vim 7.1, sometimes the arrow keys produce 'A', 'B', 'C', 'D' instead of navigating. This doesn't seem to happen locally, but usually happens when I'm logged into a Solaris machine. | ||
Adding this to my ~/.vimrc seems to fix the problem. | Adding this to my ~/.vimrc seems to fix the problem. | ||
<geshi lang="bash"> | <geshi lang="bash"> | ||
:set term=builtin_ansi | :set term=builtin_ansi | ||
</geshi> | |||
Another fix is often to change the terminfo. Vim comes with these built in terminals: | |||
<geshi> | |||
builtin_riscos | |||
builtin_amiga | |||
builtin_beos-ansi | |||
builtin_ansi | |||
builtin_pcansi | |||
builtin_win32 | |||
builtin_vt320 | |||
builtin_vt52 | |||
builtin_xterm | |||
builtin_iris-ansi | |||
builtin_debug | |||
builtin_dumb | |||
</geshi> | |||
The fix usually looks like: | |||
<geshi lang="bash"> | |||
export TERMINFO=~/share/terminfo | |||
</geshi> | </geshi> | ||
[[Category:bash]] | [[Category:bash]] | ||
[[Category:cygwin]] | [[Category:cygwin]] | ||
[[Category:Solaris]] | |||
[[Category:Vim]] |
Latest revision as of 00:33, 25 August 2009
Using Cygwin's rxvt and vim 7.1, sometimes the arrow keys produce 'A', 'B', 'C', 'D' instead of navigating. This doesn't seem to happen locally, but usually happens when I'm logged into a Solaris machine.
Adding this to my ~/.vimrc seems to fix the problem. <geshi lang="bash">
- set term=builtin_ansi
</geshi>
Another fix is often to change the terminfo. Vim comes with these built in terminals: <geshi>
builtin_riscos builtin_amiga builtin_beos-ansi builtin_ansi builtin_pcansi builtin_win32 builtin_vt320 builtin_vt52 builtin_xterm builtin_iris-ansi builtin_debug builtin_dumb
</geshi>
The fix usually looks like:
<geshi lang="bash"> export TERMINFO=~/share/terminfo </geshi>