理論與實作
關於 歸檔 分類 標籤 作者 English ไทย

Vim編輯器設定寬度80的分隔線

三月 21, 2016
在Github上編輯

Vim 編輯器設定寬度80的分隔線, 從 SO的回答 [1] ,在 .vimrc 裡加入:

if exists('+colorcolumn')
  set colorcolumn=80
else
  au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1)
endif

References:

[1]
vim set line width 80
coding style - Vim 80 column layout concerns - Stack Overflow

作者: 戴上為
∈ 分類: Linux
∑ 標籤: Linux , Vim
Powered by Github Pages, Pelican, pyScss.