+ Reply to Thread
Results 1 to 6 of 6

Thread: Putty and VI

  1. #1

    Default Putty and VI

    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.

  2. #2
    Join Date
    Mar 2007
    Posts
    14

    Default

    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.

  3. #3

    Default

    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.

    Code:
    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.

  4. #4
    Join Date
    Mar 2007
    Posts
    14

    Default

    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.

  5. #5

    Default

    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.

  6. #6
    Join Date
    Mar 2007
    Posts
    14

    Default

    yeh the arrows work in all the modes for me. you try making a .vimrc file in your home directory?

    echo syntax enable > ~/.vimrc

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts