From 9e436cef9d56470f38b62e0d122982812366be83 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Mon, 16 Mar 2020 20:59:25 -0400 Subject: [PATCH] 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 --- vim/config/after.vim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vim/config/after.vim b/vim/config/after.vim index 68af7a0..adb0ed8 100644 --- a/vim/config/after.vim +++ b/vim/config/after.vim @@ -46,8 +46,8 @@ autocmd FileChangedRO * nested set noreadonly "filtype specific settings 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,gitcommit,notes,mail,notmuch,rst,taskreport setlocal wrap + 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,mail setlocal wrap autocmd FileType tmux,taskrc 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 autocmd BufEnter,FileType vimfiler,mail hi ExtraWhitespace ctermbg=NONE guibg=NONE - autocmd BufEnter,FileType mail set textwidth=0 "}}}