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. >
|
written to. >
|
||||||
let g:ats_autoformat='1'
|
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)
|
call setpos('.', cursor)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
augroup ats
|
|
||||||
autocmd BufWritePre *.ats,*.dats,*.cats,*.sats execute 'lcd %:p:h'
|
|
||||||
augroup END
|
|
||||||
|
|
||||||
" format on write
|
" format on write
|
||||||
if g:ats_autoformat == 1
|
if g:ats_autoformat == 1
|
||||||
augroup ats
|
augroup ats
|
||||||
|
@ -46,3 +42,5 @@ endif
|
||||||
" commands
|
" commands
|
||||||
command -nargs=0 Format call AtsFormat()
|
command -nargs=0 Format call AtsFormat()
|
||||||
command -nargs=0 Check SyntasticCheck patscc
|
command -nargs=0 Check SyntasticCheck patscc
|
||||||
|
|
||||||
|
map <Plug>Clear :SyntasticReset<CR>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue