1
0
mirror of https://github.com/amix/vimrc synced 2025-06-24 07:44:59 +08:00

Updated vimrc

This commit is contained in:
amix
2015-07-13 11:22:46 +01:00
parent 9a2843c2a5
commit d7752b59ae
301 changed files with 4699 additions and 7969 deletions

View File

@ -9,7 +9,7 @@
"
"============================================================================
if exists("g:loaded_syntastic_sh_bashate_checker")
if exists('g:loaded_syntastic_sh_bashate_checker')
finish
endif
let g:loaded_syntastic_sh_bashate_checker = 1
@ -22,7 +22,7 @@ function! SyntaxCheckers_sh_bashate_GetLocList() dict
let errorformat =
\ '%EE%n: %m,' .
\ '%Z - %f: L%l,' .
\ '%Z - %f%\s%\+: L%l,' .
\ '%-G%.%#'
let loclist = SyntasticMake({

View File

@ -6,7 +6,7 @@
" as part of the devscripts package.
"============================================================================
if exists("g:loaded_syntastic_sh_checkbashisms_checker")
if exists('g:loaded_syntastic_sh_checkbashisms_checker')
finish
endif
let g:loaded_syntastic_sh_checkbashisms_checker = 1

View File

@ -10,7 +10,7 @@
"
"============================================================================
if exists("g:loaded_syntastic_sh_sh_checker")
if exists('g:loaded_syntastic_sh_sh_checker')
finish
endif
let g:loaded_syntastic_sh_sh_checker = 1
@ -46,10 +46,10 @@ endfunction " }}}1
" Utilities {{{1
function! s:GetShell() " {{{2
if !exists('b:shell') || b:shell == ''
if !exists('b:shell') || b:shell ==# ''
let b:shell = ''
let shebang = syntastic#util#parseShebang()['exe']
if shebang != ''
if shebang !=# ''
if shebang[-strlen('bash'):-1] ==# 'bash'
let b:shell = 'bash'
elseif shebang[-strlen('zsh'):-1] ==# 'zsh'
@ -59,7 +59,7 @@ function! s:GetShell() " {{{2
endif
endif
" try to use env variable in case no shebang could be found
if b:shell == ''
if b:shell ==# ''
let b:shell = fnamemodify($SHELL, ':t')
endif
endif
@ -68,7 +68,7 @@ endfunction " }}}2
function! s:IsShellValid() " {{{2
let shell = s:GetShell()
return shell != '' && executable(shell)
return shell !=# '' && executable(shell)
endfunction " }}}2
function! s:ForwardToZshChecker() " {{{2

View File

@ -3,7 +3,7 @@
"Description: Shell script syntax/style checking plugin for syntastic.vim
"============================================================================
if exists("g:loaded_syntastic_sh_shellcheck_checker")
if exists('g:loaded_syntastic_sh_shellcheck_checker')
finish
endif
let g:loaded_syntastic_sh_shellcheck_checker = 1