Skip to content

Instantly share code, notes, and snippets.

@mhinz
Created September 18, 2013 09:57
Show Gist options
  • Save mhinz/6606995 to your computer and use it in GitHub Desktop.
Save mhinz/6606995 to your computer and use it in GitHub Desktop.
autocmd BufRead,BufNewFile ~/foobar/quux/something_else/*
\ if &filetype == 'gitcommit' |
\ setlocal textwidth=72 |
\ else |
\ setlocal textwidth=120 |
\ endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment