package publish
This commit is contained in:
parent
4a9dace62f
commit
47240ada3c
2 changed files with 9 additions and 4 deletions
|
@ -28,3 +28,10 @@ When set to 1, the current buffer will be formatted every time it is
|
|||
written to. >
|
||||
let g:ats_autoformat='1'
|
||||
<
|
||||
|
||||
*ClearATS*
|
||||
|
||||
If you would like to bind a key to clear error messages use something
|
||||
like the following in your .vimrc: >
|
||||
au BufNewFile,BufRead *.*ats nmap <Leader>h <Plug>Clear
|
||||
<
|
||||
|
|
|
@ -32,10 +32,6 @@ function! AtsFormat()
|
|||
call setpos('.', cursor)
|
||||
endfunction
|
||||
|
||||
augroup ats
|
||||
autocmd BufWritePre *.ats,*.dats,*.cats,*.sats execute 'lcd %:p:h'
|
||||
augroup END
|
||||
|
||||
" format on write
|
||||
if g:ats_autoformat == 1
|
||||
augroup ats
|
||||
|
@ -46,3 +42,5 @@ endif
|
|||
" commands
|
||||
command -nargs=0 Format call AtsFormat()
|
||||
command -nargs=0 Check SyntasticCheck patscc
|
||||
|
||||
map <Plug>Clear :SyntasticReset<CR>
|
||||
|
|
Loading…
Reference in a new issue