Vim Paste/NoPaste

To toggle "paste" mode for Vim, do this to enable ctrl-v with proper indentation.

:set paste

Remember to type the ":" initially to enter command mode. You are then saying "set paste".

When you're done, reset to non-paste mode:

:set nopaste

Tags: