Last Updated: February 25, 2016
·
314
· solarnz

Automatically leave paste mode in vim when exiting insert mode

Put this in your vimrc to leave paste mode automatically when you leave insert mode. This way you will never forget to leave paste mode again!

augroup nopastemode
    autocmd InsertLeave * :set nopaste
augroup END