Add NERDTree as default function

This commit is contained in:
Gea-Suan Lin
2012-04-28 12:17:21 +08:00
parent c4ae7aeb00
commit 4212dbaabd

3
.vimrc
View File

@@ -43,3 +43,6 @@ au BufNewFile,BufRead Makefile set noexpandtab
au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif
" "
call pathogen#infect() call pathogen#infect()
"
autocmd vimenter * NERDTree
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif