VIM – paste mode

Posted by Christian Ashby on March 12, 2010

For Linux users who frequently need to edit files on remote machines in Vim, and want to copy & paste items from websites, you’ll often fall foul of the auto indent feature as pasting data into a terminal window running Vim effectively types them on the command line.

You can disable this by a mode known as ‘paste mode’ – which can be enabled like this:

:set paste

And disabled:

:set nopaste

This effectively ensures that no automatic indents happen during pasting data into your terminal.

 

 
Leave a Reply