Q:
vim has autoindent, but it has some problem when your paste code from clipboard.
A:
before your pasting:
:set paste
after your pasting:
:set nopaste
OR
use:
"+p
OR
set pastetoggle=<F3>
Q:
vim has autoindent, but it has some problem when your paste code from clipboard.
A:
before your pasting:
:set paste
after your pasting:
:set nopaste
OR
use:
"+p
OR
set pastetoggle=<F3>