From abdbfa9d36a4256a672db011612a8233ee725836 Mon Sep 17 00:00:00 2001 From: oreodave Date: Sat, 27 Jul 2019 23:37:34 +0100 Subject: +MaybeFZF function to use when entering dir --- vimrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vimrc b/vimrc index 7673319..d4f3917 100755 --- a/vimrc +++ b/vimrc @@ -75,6 +75,14 @@ colorscheme monokai "" Dir Config +function! MaybeFzf() + if argc() == 1 && isdirectory(argv()[0]) + execute "bdelete" + execute "FZF" + endif +endfunction + +autocmd VimEnter * : call MaybeFzf() let g:NERDTreeHijackNetrw = 1 -- cgit v1.2.3-13-gbd6f