From d59cc2fe41bcc22ed499201f10666d1cc46ab0fa Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 1 Jan 2016 14:09:34 +0100 Subject: [PATCH] Adjusted some configuration vars --- vimrc | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/vimrc b/vimrc index a73ec26..93728a6 100644 --- a/vimrc +++ b/vimrc @@ -25,6 +25,7 @@ Bundle 'dag/vim-fish' Bundle 'fatih/vim-go' Plugin 'honza/dockerfile.vim' Bundle 'Blackrush/vim-gocode' +Plugin 'nsf/gocode', {'rtp': 'vim/'} " important settings " @@ -253,7 +254,7 @@ set nolist " list set lcs=eol:$ " number - show the line number for each line (local to window) -set nonu " nu +set nu " nonu " " editing text @@ -568,7 +569,7 @@ set ttm=-1 " " modeline - enable using settings from modelines when reading a file (local to buffer) -set noml " ml +set ml " noml " modelines - number of lines to check for modelines set mls=5 @@ -957,3 +958,16 @@ if &term =~ '^screen' execute "set =\e[1;*C" execute "set =\e[1;*D" endif + +" +" NERDTree configuration +" + +" Autostart NERDTree on start +"autocmd vimenter * NERDTree + +" On Ctrl-N toggle NERDTree +map :NERDTreeToggle + +" Autoclose vim when NERDTree is last window +autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif