Pasting Into Vim


Problem

Auto-indent in Vim butchers pasted text (from outside sources) beyond recognition.

Solution

Turn paste mode on:

:set paste

Or bind turning on paste mode to F2:

"~/.vimrc
set pastetoggle=<F2>

Patrick Arthur Brown

Patrick is a software engineer at Fiksu.
comments powered by Disqus