diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2024-04-07 00:27:28 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2024-04-07 00:27:28 -0700 |
commit | c2e34641e6a377033f841e0fec02de46be265e83 (patch) | |
tree | bf7e3f04e51f7db534711001926e8fee6362ce10 /home/xyz/.config/nvim | |
parent | 2ff12049d80a11a44d3bcb79bf7c2f2dd741ca85 (diff) |
feat: gitcommit filetype set cc
Diffstat (limited to 'home/xyz/.config/nvim')
-rw-r--r-- | home/xyz/.config/nvim/init.vim | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/home/xyz/.config/nvim/init.vim b/home/xyz/.config/nvim/init.vim index 7164b414..6e8e9a4a 100644 --- a/home/xyz/.config/nvim/init.vim +++ b/home/xyz/.config/nvim/init.vim @@ -56,6 +56,8 @@ augroup mycmd autocmd BufNewFile,BufRead *.csx setfiletype cs " for alerting me plain text email characters per line " neomutt auto set new email filetype as mail so this will work + " https://stackoverflow.com/q/2290016 suggest gitcommit main body shouldbe about 72 + " https://useplaintext.email/ suggest 72 " https://mailformat.dan.info/body/linelength.html suggested 65 "" https://superuser.com/q/827647/1282809 " https://lkml.org shows Linus seems use 70 @@ -63,14 +65,13 @@ augroup mycmd " https://en.wikipedia.org/wiki/Characters_per_line " related: textwidth " if want to do this only for some file extensions, see: - " https://useplaintext.email/ suggest 72 "" https://stackoverflow.com/a/469576/9008720 "" don't forget to put in augroup: "" https://stackoverflow.com/a/60470085/9008720 "" also other ways: "" https://stackoverflow.com/q/158968/9008720 - "autocmd FileType mail setlocal colorcolumn=72 - autocmd FileType mail setlocal cc=72 + " or use setlocal cc= + autocmd FileType mail,gitcommit setlocal colorcolumn=72 augroup END " :h markdown, for vim default tpope/vim-markdown |