Enable more accurate syntax highlighting

This commit is contained in:
Kevin MacMartin 2016-11-28 14:12:12 -05:00
parent f9b58bcd19
commit 7e76c9c806
2 changed files with 5 additions and 4 deletions

View file

@ -31,6 +31,9 @@ endif
autocmd FileChangedRO * nested set noreadonly autocmd FileChangedRO * nested set noreadonly
"FILETPE AND SYNTAX: {{{ "FILETPE AND SYNTAX: {{{
"enable more accurate syntax synchronization
autocmd BufEnter * :syntax sync fromstart
"set given filenames to various filetypes "set given filenames to various filetypes
autocmd BufNewFile,BufRead *.aspx,*.asmx,*.ascx,*.master setlocal ft=aspnet autocmd BufNewFile,BufRead *.aspx,*.asmx,*.ascx,*.master setlocal ft=aspnet
autocmd BufNewFile,BufRead *.gradle setlocal ft=groovy 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 *vimpagerrc setlocal ft=vim
autocmd BufNewFile,BufRead *yaourtrc setlocal ft=sh autocmd BufNewFile,BufRead *yaourtrc setlocal ft=sh
"filename specific settings
autocmd BufEnter,FileType sh setlocal iskeyword-=.
"filtype specific settings "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,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 text,gitcommit,notes,mail,notmuch,rst,taskreport 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 #

View file

@ -47,7 +47,7 @@
"}}} "}}}
"GENERAL SETTINGS: {{{ "GENERAL SETTINGS: {{{
"FILETYPES: {{{ "FILE: {{{
filetype plugin indent on "enable filetype-based auto-indentation filetype plugin indent on "enable filetype-based auto-indentation
syntax on "enable syntax highlighting syntax on "enable syntax highlighting
set formatoptions=roqnl12 "how automatic formatting is to be done set formatoptions=roqnl12 "how automatic formatting is to be done