Skip to content
opustecnica edited this page Jan 3, 2021 · 1 revision

Turn off auto tab when pasting

:set paste
:set nopaste
:set noai
:set ai

Another option is to add a macro to your vimrc:

nmap <silent> <leader>p :set paste<CR>"*p:set nopaste<CR>

I usually use :r! cat and then paste ( shift + insert ) the content, and CTRL+D

Clone this wiki locally