0

I was trying to append some text to multiple lines in vi on a RHEL 6 system, however I could not get it to work. I press Control + V to get into visual block mode, select the lines I need, but when I press capital A, instead of going into insert mode, it goes back into command mode. I then created two droplets on digital ocean to test this, one CentOS 7 and one Ubuntu, and to my surprise, this worked fine on Ubuntu, but did not on CentOS. So why is that? Is there some option I need to add to my vimrc file or are these functions remapped somehow on RHEL/CentOS? Searching the web did not help very much.

migrated from serverfault.com May 24 at 11:17

This question came from our site for system and network administrators.

  • 2
    Can you add the versions and vimrcs of the systems? Are you starting the program as vi or vim? Can you check the value of compatible? – D. Ben Knoble May 24 at 11:29
  • Check your version, you need +visualextra (which is now always included with the latest Vim versions, but I believe a tiny Vim does not enable this by default) – Christian Brabandt May 24 at 11:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy