mirror of
https://github.com/prurigro/darkcloud-vimconfig.git
synced 2024-11-26 00:01:27 -05:00
Enable more accurate syntax highlighting
This commit is contained in:
parent
f9b58bcd19
commit
7e76c9c806
2 changed files with 5 additions and 4 deletions
|
@ -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 #
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue