2015/4/29

keep text formate in vim useing pietty copy-paste


From:How can I keep the code formated as original source when I paste them to vim?

When I copy some code from webpages and paste it to VIM,I find it becomes a mess style like a ladder as follows
xxxxxx
   xxxxxx
      xxxxxx
         xxxxxxxxxx
Since it messed so regularly so I think maybe there's something wrong with my .vimrc which is as below:

Answer:

Do this before:
:set paste
Then after:
:set nopaste

沒有留言:

windows 無法拖動文件

原因:未知 症狀:windows點任何文件,都無法拖動到其他地方  解決方式: 來源: https://answers.microsoft.com/en-us/windows/forum/all/drag-and-drop-stopped-working/b73e4938-ca2...