Skip to content

Instantly share code, notes, and snippets.

@tomykaira
Created July 16, 2015 07:23
Show Gist options
  • Save tomykaira/8d9269ef2388c5491fd3 to your computer and use it in GitHub Desktop.
Save tomykaira/8d9269ef2388c5491fd3 to your computer and use it in GitHub Desktop.
Simple vimrc for strict coding rule
au BufWinEnter COMMIT_EDITMSG setlocal tw=75
au BufWinEnter COMMIT_EDITMSG let w:g1=matchadd('ErrorMsg', '\%1l\%51v.\+', -1)
au BufWinEnter COMMIT_EDITMSG let w:g2=matchadd('ErrorMsg', '\%76v.\+', -1)
au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%80v.\+', -1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment