Skip to content

Commit

Permalink
Added some tweaks for NERDtree
Browse files Browse the repository at this point in the history
  • Loading branch information
taxilian committed Aug 20, 2010
1 parent 7b88fc4 commit 249b444
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
url = http://github.com/ervandew/supertab.git
[submodule ".vim/bundle/nerdtree"]
path = .vim/bundle/nerdtree
url = http://github.com/scrooloose/nerdtree.git
url = git@github.com:taxilian/nerdtree.git
[submodule ".vim/bundle/fugitive"]
path = .vim/bundle/fugitive
url = http://github.com/tpope/vim-fugitive.git
Expand Down
16 changes: 15 additions & 1 deletion .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@

" Popup menu hightLight Group
"highlight Pmenu ctermbg=13 guibg=DarkBlue
highlight PmenuSel ctermbg=7 guibg=DarkBlue guifg=LightBlue
"highlight PmenuSel ctermbg=7 guibg=DarkBlue guifg=LightBlue
"highlight PmenuSbar ctermbg=7 guibg=DarkGray
"highlight PmenuThumb guibg=Black

Expand Down Expand Up @@ -275,6 +275,8 @@
let NERDTreeChDirMode=2
let NERDTreeQuitOnOpen=0
let NERDTreeShowHidden=1
let NERDTreeKeepTreeInNewTab=1
"au BufEnter * call NERDTreeInitAsNeeded()
" }

" VCS commands {
Expand Down Expand Up @@ -356,3 +358,15 @@ function! InitializeDirectories()
endfor
endfunction
call InitializeDirectories()

function! NERDTreeInitAsNeeded()
redir => bufoutput
buffers!
redir END
let idx = stridx(bufoutput, "NERD_tree")
if idx > -1
NERDTreeMirror
NERDTreeFind
wincmd l
endif
endfunction

0 comments on commit 249b444

Please sign in to comment.