vim-vint linting pass

This commit is contained in:
Vasili Svirydau
2017-12-19 13:42:58 -08:00
parent dd4e4a412c
commit c0abd37f29
5 changed files with 37 additions and 31 deletions

View File

@@ -1,4 +1,4 @@
if has("autocmd")
if has('autocmd')
filetype plugin indent on
augroup InvisibleCharsHighlight
@@ -17,9 +17,9 @@
au!
autocmd BufWritePre * :call <SID>StripTrailingWhitespace()
function! <SID>StripTrailingWhitespace()
let pos = getpos('.')
let l:pos = getpos('.')
%s/\s\+$//e
call setpos('.', pos)
call setpos('.', l:pos)
endfun
augroup END