aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
-rw-r--r--vim/ftplugin/sh.vim2
-rw-r--r--vim/plugin/strip_trailing_whitespace.vim2
2 files changed, 2 insertions, 2 deletions
diff --git a/vim/ftplugin/sh.vim b/vim/ftplugin/sh.vim
index d13f34da..8990f0fa 100644
--- a/vim/ftplugin/sh.vim
+++ b/vim/ftplugin/sh.vim
@@ -39,7 +39,7 @@ nnoremap <buffer> <silent>
" Map linter based on shell family
if exists('b:is_bash') && b:is_bash
- let b:lint = 'write shellcheck -s bash -'
+ let b:lint = 'write !shellcheck -s bash -'
elseif exists('b:is_ksh') && b:is_ksh
let b:lint = 'write !shellcheck -s ksh -'
else
diff --git a/vim/plugin/strip_trailing_whitespace.vim b/vim/plugin/strip_trailing_whitespace.vim
index 9a9d3d95..ceeaec7c 100644
--- a/vim/plugin/strip_trailing_whitespace.vim
+++ b/vim/plugin/strip_trailing_whitespace.vim
@@ -54,7 +54,7 @@ function! s:StripTrailingWhitespace()
let l:cc = col('.')
" Delete the lines, which will move the cursor
- execute l:lw + 1 . ',$ delete'
+ silent execute l:lw + 1 . ',$ delete'
" Return the cursor to the saved position
call cursor(l:lc, l:cc)