Hi UNIX/Linux experts,
Sometimes I copy and paste code into a text file which I have opened with vim (vi improved). By default, if any line I paste starts with a comment character ("#"), vim will automatically prefix all subsequent lines with a "#". To avoid this from happening, I can type this command before I do the pasting:
Although that works, I would like to have this option set by default. I have tried putting this:
into my .vimrc file, but it doesn't seem to make any difference.
Please post tested solutions only.
I'm using vim version 7.4.160 on Linux (GNU).