Last Updated: February 25, 2016
·
660
· blacktulip

Paste multiple lines into VIM without pain

nnoremap <F2> :set invpaste paste?<CR>
imap <F2> <C-O>:set invpaste paste?<CR>
set pastetoggle=<F2>

1 Response
Add your response

Why not use gp instead p? Works out-of-the-box.

over 1 year ago ·