aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-08 12:49:12 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-08 12:49:12 +1300
commit587844257afebc8d879136fb449a867984c0a550 (patch)
treeddf1ea2f05e6956a193a6fb82d8fdf415c42542f
parentfc26455e79be92b13a7f7765b29949e5c601e3a8 (diff)
downloaddotfiles-587844257afebc8d879136fb449a867984c0a550.tar.gz
Rename b:check and b:lint with sh_ prefix
Just to reduce the chance of colliding with existing buffer variable names.
-rw-r--r--vim/ftplugin/sh.vim18
1 files changed, 9 insertions, 9 deletions
diff --git a/vim/ftplugin/sh.vim b/vim/ftplugin/sh.vim
index 29dc7c11..35bfefc9 100644
--- a/vim/ftplugin/sh.vim
+++ b/vim/ftplugin/sh.vim
@@ -22,28 +22,28 @@ endif
" Map checker based on shell family
if exists('b:is_bash')
- let b:check = 'write !bash -n'
+ let b:sh_check = 'write !bash -n'
elseif exists('b:is_kornshell')
- let b:check = 'write !ksh -n'
+ let b:sh_check = 'write !ksh -n'
else
- let b:check = 'write !sh -n'
+ let b:sh_check = 'write !sh -n'
endif
nnoremap <buffer> <silent>
\ <LocalLeader>c
- \ :<C-U>execute b:check<CR>
+ \ :<C-U>execute b:sh_check<CR>
" Map linter based on shell family
if exists('b:is_bash')
- let b:lint = 'write !shellcheck -s bash -'
+ let b:sh_lint = 'write !shellcheck -s bash -'
elseif exists('b:is_kornshell')
- let b:lint = 'write !shellcheck -s ksh -'
+ let b:sh_lint = 'write !shellcheck -s ksh -'
else
- let b:lint = 'write !shellcheck -s sh -'
+ let b:sh_lint = 'write !shellcheck -s sh -'
endif
nnoremap <buffer> <silent>
\ <LocalLeader>l
- \ :<C-U>execute b:lint<CR>
+ \ :<C-U>execute b:sh_lint<CR>
" Clear away these extra changes
let b:undo_user_ftplugin
- \ = 'setlocal keywordprg< | unlet! b:check b:lint'
+ \ = 'setlocal keywordprg< | unlet! b:sh_check b:sh_lint'