diff --git a/doc/ats.txt b/doc/ats.txt index 64a2c29..0a22d75 100644 --- a/doc/ats.txt +++ b/doc/ats.txt @@ -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 h Clear +< diff --git a/ftplugin/ats.vim b/ftplugin/ats.vim index 7dce0fc..ca69f83 100644 --- a/ftplugin/ats.vim +++ b/ftplugin/ats.vim @@ -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 Clear :SyntasticReset