From 587844257afebc8d879136fb449a867984c0a550 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 8 Nov 2017 12:49:12 +1300 Subject: Rename b:check and b:lint with sh_ prefix Just to reduce the chance of colliding with existing buffer variable names. --- vim/ftplugin/sh.vim | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'vim/ftplugin/sh.vim') 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 \ c - \ :execute b:check + \ :execute b:sh_check " 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 \ l - \ :execute b:lint + \ :execute b:sh_lint " 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' -- cgit v1.2.3