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/.vimrc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'vim/.vimrc') 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