$ 0 0 Add this to your ~/.vimrc and you will only have to press F2 before and after pasting: set pastetoggle=<F2>