[vim] Ignore exit status of 2 (#345)

This commit is contained in:
Junegunn Choi 2015-09-18 09:59:40 +09:00
parent 2022a3ad96
commit 8764be07e2

View File

@ -229,7 +229,7 @@ function! s:execute(dict, command, temps)
redraw!
if v:shell_error
" Do not print error message on exit status 1
if v:shell_error > 1
if v:shell_error > 2
echohl ErrorMsg
echo 'Error running ' . command
endif