summaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorHorus32015-02-02 17:18:13 +0100
committerHorus32015-02-02 17:18:13 +0100
commitff775238f563bcd0f25985c029f98f90c5e4a70b (patch)
tree6ae7dae28b5127c0a79502117d3d272b4c279e76 /vim
parent335fac46fa9a8b0eee6665dbbc38cfec6ad101e3 (diff)
downloaddotfiles-ff775238f563bcd0f25985c029f98f90c5e4a70b.tar.gz
Updated vimrc and added small shellscript to list directories only.
Diffstat (limited to 'vim')
m---------vim/.vim/bundle/nerdtree0
-rw-r--r--vim/.vimrc14
2 files changed, 13 insertions, 1 deletions
diff --git a/vim/.vim/bundle/nerdtree b/vim/.vim/bundle/nerdtree
new file mode 160000
+Subproject 3b98a7fcae8f9fff356907171f0406ff8cd2892
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 <gn> : tabn<CR>
+"map <gt> : tabp<CR>
+
+" 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 <C-n> :NERDTreeToggle<CR>