vim paste indent problem

Q1:

vim has autoindent, but it has some problem when your paste code from clipboard.

 

A1:

before your pasting:

:set paste

after your pasting:

:set nopaste

OR

use:

"+p

OR

set pastetoggle=<F3>

 

Q2:

Copy & Paste on VIM by PuTTY

A2:

:set mouse=

 

posted on 2013-03-13 10:15  eshizhan  阅读(376)  评论(0编辑  收藏  举报