-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
22 lines (22 loc) · 874 Bytes
/
vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
set ffs=unix
set autoread
set autowriteall
au FileType javascript setlocal ts=4 sts=4 sw=4 expandtab
fun LoadAllFiles()
for line in split(system('find resources/ -name "*.js"'),'\n')
silent execute 'edit '.line
endfor
endfun
if argc() == 0
au VimEnter * nested call LoadAllFiles()
au VimEnter * silent execute 'NERDTree'
endif
"Fix jslint so it respects my config
function FixJslintChecker()
function! SyntaxCheckers_javascript_GetLocList()
let makeprg = "jsl -conf jsl.conf -nologo -nofilelisting -nosummary -nocontext -process ".shellescape(expand('%'))
let errorformat='%W%f(%l): lint warning: %m,%-Z%p^,%W%f(%l): warning: %m,%-Z%p^,%E%f(%l): SyntaxError: %m,%-Z%p^,%-G'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
endfunction
endfunction
au VimEnter * silent call FixJslintChecker()