Skip to content

Commit

Permalink
Open a NERDTree automatically when vim starts up if no files were spe…
Browse files Browse the repository at this point in the history
…cified
  • Loading branch information
danielbayerlein committed Mar 29, 2015
1 parent ebb9e41 commit 31fa48c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ let g:mapleader=','
" NERDTree
let NERDTreeShowHidden=1
let NERDTreeIgnore=['\~$', '^\.DS_Store$', '^\.bundle$', '^\.git$', '^\.sass-cache$']
let g:nerdtree_tabs_open_on_console_startup=1
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
map <Leader>n :NERDTreeToggle<CR>
" Bbye (Buffer Bye) for Vim
Expand Down

0 comments on commit 31fa48c

Please sign in to comment.