diff --git a/vim/config/after.vim b/vim/config/after.vim index d4f60f5..8e37c58 100644 --- a/vim/config/after.vim +++ b/vim/config/after.vim @@ -31,6 +31,9 @@ endif autocmd FileChangedRO * nested set noreadonly "FILETPE AND SYNTAX: {{{ + "enable more accurate syntax synchronization + autocmd BufEnter * :syntax sync fromstart + "set given filenames to various filetypes autocmd BufNewFile,BufRead *.aspx,*.asmx,*.ascx,*.master setlocal ft=aspnet autocmd BufNewFile,BufRead *.gradle setlocal ft=groovy @@ -41,10 +44,8 @@ autocmd FileChangedRO * nested set noreadonly autocmd BufNewFile,BufRead *vimpagerrc setlocal ft=vim autocmd BufNewFile,BufRead *yaourtrc setlocal ft=sh - "filename specific settings - autocmd BufEnter,FileType sh setlocal iskeyword-=. - "filtype specific settings + autocmd BufEnter,FileType sh setlocal iskeyword-=. autocmd Filetype text,mkd,mkdc,gitcommit,notes,mail,notmuch,rst,taskreport setlocal nonumber spell nolist linebreak 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 tmux,taskrc setlocal commentstring=#\ %s "set the comment string to # diff --git a/vim/config/settings.vim b/vim/config/settings.vim index bc41680..55f24d8 100644 --- a/vim/config/settings.vim +++ b/vim/config/settings.vim @@ -47,7 +47,7 @@ "}}} "GENERAL SETTINGS: {{{ - "FILETYPES: {{{ + "FILE: {{{ filetype plugin indent on "enable filetype-based auto-indentation syntax on "enable syntax highlighting set formatoptions=roqnl12 "how automatic formatting is to be done