package publish
This commit is contained in:
parent
ceb31d239c
commit
98913f1f83
1 changed files with 4 additions and 4 deletions
|
@ -19,7 +19,7 @@ endif
|
||||||
" indentation rules
|
" indentation rules
|
||||||
set smarttab
|
set smarttab
|
||||||
augroup ats
|
augroup ats
|
||||||
au! BufNewFile,BufRead *.*ats setl shiftwidth=2
|
au BufNewFile,BufRead *.*ats setl shiftwidth=2
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
" set comment string to something prettier
|
" set comment string to something prettier
|
||||||
|
@ -39,18 +39,18 @@ endfunction
|
||||||
|
|
||||||
if g:ats_use_ctags == 1
|
if g:ats_use_ctags == 1
|
||||||
augroup ats
|
augroup ats
|
||||||
autocmd! BufWritePost *.dats,*.cats,*.sats,*.hats silent !ctags -R .
|
autocmd BufWritePost *.dats,*.cats,*.sats,*.hats silent !ctags -R .
|
||||||
augroup END
|
augroup END
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" format on write
|
" format on write
|
||||||
if g:ats_autoformat == 1
|
if g:ats_autoformat == 1
|
||||||
augroup ats
|
augroup ats
|
||||||
autocmd! BufWritePost *.dats,*.sats,*.hats call AtsFormat()
|
autocmd BufWritePost *.dats,*.sats,*.hats call AtsFormat()
|
||||||
augroup END
|
augroup END
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" commands
|
" commands
|
||||||
command -nargs=0 Format call AtsFormat()
|
command! -nargs=0 Format call AtsFormat()
|
||||||
|
|
||||||
map <Plug>Clear :SyntasticReset<CR>
|
map <Plug>Clear :SyntasticReset<CR>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue