+MaybeFZF function to use when entering dir

This commit is contained in:
oreodave
2019-07-27 23:37:34 +01:00
parent a8eb24e380
commit abdbfa9d36

8
vimrc
View File

@@ -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