aboutsummaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc')
-rwxr-xr-xvimrc8
1 files changed, 8 insertions, 0 deletions
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