Fixing Vi and Arrows in Insert Mode

Fixing Vi and Arrows in Insert Mode

Recently I moved one of my sites onto another server, different installation. I noticed when i was working in Vi in insert mode my arrow keys would insert their values instead of navigating around the text. To fix this:

  • Make a new file in your home directory valled .vimrc
  • Inside it put in:

    :set backspace=indent,eol,start
    :set term=builtin_ansi

Now that global setting should be applied whenever you are working with files in vi and your cursor navigation troubles should be no more!

Posted by VoiDeT

Categorised under Technology
Bookmark the permalink or leave a trackback.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

or