aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororeodave <aryadevchavali1@gmail.com>2019-07-27 23:37:34 +0100
committeroreodave <aryadevchavali1@gmail.com>2019-07-27 23:37:34 +0100
commitabdbfa9d36a4256a672db011612a8233ee725836 (patch)
tree827189f0fa3fdad58c255cda5e65fae2297247b8
parenta8eb24e3807a3ae1199070d5930592a163c4d1dc (diff)
downloaddotfiles-abdbfa9d36a4256a672db011612a8233ee725836.tar.gz
dotfiles-abdbfa9d36a4256a672db011612a8233ee725836.tar.bz2
dotfiles-abdbfa9d36a4256a672db011612a8233ee725836.zip
+MaybeFZF function to use when entering dir
-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