From bc2e82efc13f4fb5ad714a7de98a24dfb74b36e9 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 13 Mar 2015 23:04:13 +0900 Subject: [PATCH] [vim] Suppress error message when clear command is N/A --- plugin/fzf.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 076ab91..713dfff 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -171,7 +171,7 @@ endfunction function! s:execute(dict, command, temps) call s:pushd(a:dict) - silent !clear + silent! !clear 2> /dev/null if has('gui_running') let launcher = get(a:dict, 'launcher', get(g:, 'fzf_launcher', s:launcher)) let command = printf(launcher, "'".substitute(a:command, "'", "'\"'\"'", 'g')."'")