From b8f2e4193df13bc668d872541b35a3c7b172d9fa Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Wed, 1 Mar 2017 22:09:32 +0800 Subject: [PATCH] Fix #303 --- config/plugins/vimfiler.vim | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/config/plugins/vimfiler.vim b/config/plugins/vimfiler.vim index 14cf6ab7a..4db32c4af 100644 --- a/config/plugins/vimfiler.vim +++ b/config/plugins/vimfiler.vim @@ -23,23 +23,25 @@ if has('mac') else let g:vimfiler_quick_look_command = 'gloobus-preview' endif - -call vimfiler#custom#profile('default', 'context', { - \ 'explorer' : 1, - \ 'winwidth' : g:spacevim_sidebar_width, - \ 'winminwidth' : 30, - \ 'toggle' : 1, - \ 'auto_expand': 1, - \ 'direction' : 'rightbelow', - \ 'parent': 0, - \ 'explorer_columns' : 'gitstatus', - \ 'status' : 1, - \ 'safe' : 0, - \ 'split' : 1, - \ 'hidden': 1, - \ 'no_quit' : 1, - \ 'force_hide' : 0, - \ }) +try + call vimfiler#custom#profile('default', 'context', { + \ 'explorer' : 1, + \ 'winwidth' : g:spacevim_sidebar_width, + \ 'winminwidth' : 30, + \ 'toggle' : 1, + \ 'auto_expand': 1, + \ 'direction' : 'rightbelow', + \ 'parent': 0, + \ 'explorer_columns' : 'gitstatus', + \ 'status' : 1, + \ 'safe' : 0, + \ 'split' : 1, + \ 'hidden': 1, + \ 'no_quit' : 1, + \ 'force_hide' : 0, + \ }) +catch +endtry augroup vfinit au! autocmd FileType vimfiler call s:vimfilerinit()