diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2024-04-07 00:07:02 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2024-04-07 00:07:02 -0700 |
commit | 2ff12049d80a11a44d3bcb79bf7c2f2dd741ca85 (patch) | |
tree | cfcb8b5fd553545dfe9d4cb8e01e1df26c02dc0a /home/xyz/.config/nvim/init.vim | |
parent | 25b92afdd9cd39962c5b2fc3f476700b158cca93 (diff) |
feat: mail filetype set colorcolumn remind me max line char
Diffstat (limited to 'home/xyz/.config/nvim/init.vim')
-rw-r--r-- | home/xyz/.config/nvim/init.vim | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/home/xyz/.config/nvim/init.vim b/home/xyz/.config/nvim/init.vim index dad0aef1..7164b414 100644 --- a/home/xyz/.config/nvim/init.vim +++ b/home/xyz/.config/nvim/init.vim @@ -54,6 +54,23 @@ augroup mycmd " .csx seems not c# but c# script file, this works tho " set syntax=cs also works 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://mailformat.dan.info/body/linelength.html suggested 65 + "" https://superuser.com/q/827647/1282809 + " https://lkml.org shows Linus seems use 70 + " https://lkml.org Hottest messages shows people use around 70-80 + " 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 augroup END " :h markdown, for vim default tpope/vim-markdown @@ -126,22 +143,6 @@ set smartcase " :h disable-mouse set mouse= -" for alerting me plain text email characters per line -" https://mailformat.dan.info/body/linelength.html suggested 65 -"" https://superuser.com/q/827647/1282809 -" https://lkml.org shows Linus seems use 70 -" https://lkml.org Hottest messages shows people use around 70-80 -" https://en.wikipedia.org/wiki/Characters_per_line -" related: textwidth -" if want to do this only for some file extensions, see: -"" 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 -"set colorcolumn=70 -"set cc=70 - " map ctrl+h/j/k/l to move between split windows map <C-h> <C-w>h map <C-j> <C-w>j |