View Full Version : Putty and VI
skwiecinski
03-22-2007, 08:41 PM
It seems that when I am using VI through putty when I am in insert mode I get escape characters, instead of the cursor moving when I use the arrow keys. Everything seems to work fine if I use pico. Is there a particular term I should be using?
Thanks.
newbar
03-23-2007, 09:26 AM
try using vim instead of vi. if you use vi in standard mode the controls are j - moves up, k moves down, l moves right, h moves left.
skwiecinski
03-23-2007, 10:51 AM
Does it in Vi and Vim.
I am able to use the arrow keys when I am not in edit mode, but when I do into edit mode and attempts to use the arrow keys I get escape characters.
I am pretty sure that there is a problem with the terms that are available.
I have attempted to change my term to vt101 or vt200, but when I do that I am informed that that term type is not available.
E558: Terminal entry not found in terminfo
'vt101' not known. Available builtin terminals are:
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
defaulting to 'ansi'
Either the systems are set up in a way that I am not use to, or I am just doing something wrong.
I don't know if anyone else has had this problem, or if they were able to fix it. I don't want to switch to another ssh client, because I like the fact that I can run putty from a flash drive.
newbar
03-23-2007, 06:06 PM
i tried using putty the arrow keys work for me in insert mode. my TERM=xterm. your right it's most likely i term problem.
skwiecinski
03-23-2007, 11:56 PM
Well, my default term is xterm also. Now, do the arrow keys work in edit? My arrows keys work in everything except when I am in an insert mode.
newbar
03-24-2007, 11:44 AM
yeh the arrows work in all the modes for me. you try making a .vimrc file in your home directory?
echo syntax enable > ~/.vimrc
Powered by vBulletin™ Version 4.0.6 Copyright © 2010 vBulletin Solutions, Inc. All rights reserved.