If you paste a block into vim with autoindent turned on, each line will automatically be indented. It's a huge pain in the ass to fix.
Instead, use paste mode!
:set paste
# edit normally, insert mode is now `-- INSERT (paste) --`
:set nopaste
If you paste a block into vim with autoindent turned on, each line will automatically be indented. It's a huge pain in the ass to fix.
Instead, use paste mode!
:set paste
# edit normally, insert mode is now `-- INSERT (paste) --`
:set nopaste