Wednesday 17 December 2014

In vi Up Arrow and Down Arrow is showing special charchters- Ubuntu

Problem: While using vi editor in ubuntu when i entered in to instert mode using i command. Using up and down arrows is showing special characters instead of navigating to up and down.

Solution:
 Create a file named ".vimrc" under your home directory and add the content "set nocompatible".

Example:



 
mario@ubuntu:~$ touch .vimrc
mario@ubuntu:~$ pwd
/home/mario
mario@ubuntu:~$ echo "set nocompatible" > .vimrc

2 comments:

  1. It's interesting that many of the bloggers to helped clarify a few things for me as well as giving.Most of ideas can be nice content.The people to give them a good shake to get your point and across the command .

    digital marketing company in chennai
    seo company in chennai

    ReplyDelete
  2. The given information was very excellent & Great tips, and awesome way to get exert tips from everyone, not only i like that post all peoples like that post, because of all given information was wonderful and it's very helpful for me.
    Best Interior Designers in Chennai
    Interior Designers in Chennai

    ReplyDelete