歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> Linux業界 >> 防止VIM粘貼數據時斷行

防止VIM粘貼數據時斷行

日期:2017/3/2 13:45:51   编辑:Linux業界

  在vim編輯文件中,如果想粘貼較大長度的一行字符串時,經常會出現自動折行的情況,其實很簡單,只需修改 /etc/vimrc,修改一個選項:

  if has("autocmd")

  " In text files, always limit the width of text to 78 characters

  " autocmd BufRead *.txt set tw=78

  autocmd BufRead *.txt set tw=200

  看到上面的注釋了吧,把tw從78改成200甚至更大就行了。

Copyright © Linux教程網 All Rights Reserved