Remove some filetype-specific settings for overly custom filetypes (those should be configured in the user's config), and remove the textwidth override setting it to 0 for the mail filetype

This commit is contained in:
Kevin MacMartin 2020-03-16 20:59:25 -04:00
parent cf0a092643
commit 9e436cef9d

View file

@ -46,8 +46,8 @@ autocmd FileChangedRO * nested set noreadonly
"filtype specific settings "filtype specific settings
autocmd BufEnter,FileType sh setlocal iskeyword-=. autocmd BufEnter,FileType sh setlocal iskeyword-=.
autocmd Filetype text,markdown,mkdc,gitcommit,notes,mail,notmuch,rst,taskreport setlocal nonumber spell nolist linebreak tabstop=2 shiftwidth=2 breakat&vim breakat-=* breakat-=. breakat-=/ breakat-=? breakat-=, breakat-=: breakat-=; breakat-=! "set some defaults for word processing autocmd Filetype text,markdown,gitcommit,mail setlocal nonumber spell nolist linebreak tabstop=2 shiftwidth=2 breakat&vim breakat-=* breakat-=. breakat-=/ breakat-=? breakat-=, breakat-=: breakat-=; breakat-=! "set some defaults for word processing
autocmd Filetype text,gitcommit,notes,mail,notmuch,rst,taskreport setlocal wrap autocmd Filetype text,gitcommit,mail setlocal wrap
autocmd FileType tmux,taskrc setlocal commentstring=#\ %s "set the comment string to # autocmd FileType tmux,taskrc setlocal commentstring=#\ %s "set the comment string to #
autocmd FileType slrnrc setlocal commentstring=%%\ %s "set the comment string to % autocmd FileType slrnrc setlocal commentstring=%%\ %s "set the comment string to %
@ -65,5 +65,4 @@ autocmd FileChangedRO * nested set noreadonly
"disable the whitespace plugin for vimfiler "disable the whitespace plugin for vimfiler
autocmd BufEnter,FileType vimfiler,mail hi ExtraWhitespace ctermbg=NONE guibg=NONE autocmd BufEnter,FileType vimfiler,mail hi ExtraWhitespace ctermbg=NONE guibg=NONE
autocmd BufEnter,FileType mail set textwidth=0
"}}} "}}}