Killing the horrors of vim

I know most youngsters love all the cleverness of vim but sometimes it’s a bit too clever for its own good and I have been having a nightmare trying to copy and paste some XML into a file on a Linux server; vim refuses to recognise the noai option to turn off auto indentation and makesva complete mess of the edit.
There is, however, an option to rescue the situation,
:set cp
Or
:set compatible

Which turns off all (well most) of the advanced features that make vim so hard to use on a server.
My XML pastes first time although syntax highlighting is still on, but it is such a big improvement.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s