From ff775238f563bcd0f25985c029f98f90c5e4a70b Mon Sep 17 00:00:00 2001 From: Horus3 Date: Mon, 2 Feb 2015 17:18:13 +0100 Subject: Updated vimrc and added small shellscript to list directories only. --- vim/.vim/bundle/nerdtree | 1 + vim/.vimrc | 14 +++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 160000 vim/.vim/bundle/nerdtree (limited to 'vim') diff --git a/vim/.vim/bundle/nerdtree b/vim/.vim/bundle/nerdtree new file mode 160000 index 0000000..3b98a7f --- /dev/null +++ b/vim/.vim/bundle/nerdtree @@ -0,0 +1 @@ +Subproject commit 3b98a7fcae8f9fff356907171f0406ff8cd28921 diff --git a/vim/.vimrc b/vim/.vimrc index 28d6d07..d0d714e 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -8,6 +8,7 @@ call vundle#begin()" Plugin 'gmarik/Vundle.vim' Plugin 'fatih/vim-go' Plugin 'mattn/emmet-vim' +Plugin 'scrooloose/nerdtree' call vundle#end() " required filetype plugin indent on " required @@ -34,4 +35,15 @@ command Q q command WQ wq command Wq wq - +"cycle through tabs +"map : tabn +"map : tabp + +" start NERDtree on startup +autocmd vimenter * NERDTree +" close vim when the only open window is NERDtree +autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif +" autofocus on opened file instead of nerdtree +autocmd VimEnter * wincmd p +" Toggle NERDtree +map :NERDTreeToggle -- cgit v1.2.3