[Linux] Vim pasting causes extra spaces

When you pasting text from other sources into Vim using mouse right-click, the format may be messed up due to auto-indenting. Use the following command to enable pasting mode:

:set paste

After the pasting is done, revert to normal mode:

:set nopaste

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *