Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
tonybyrne committed Sep 10, 2011
2 parents 919c75b + c9255cd commit db9b5ec
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions gvimrc
Expand Up @@ -82,9 +82,11 @@ function StartTerm()
endfunction

" Project Tree
autocmd VimEnter * call s:CdIfDirectory(expand("<amatch>"))
autocmd FocusGained * call s:UpdateNERDTree()
autocmd WinEnter * call s:CloseIfOnlyNerdTreeLeft()
if exists("loaded_nerd_tree")
autocmd VimEnter * call s:CdIfDirectory(expand("<amatch>"))
autocmd FocusGained * call s:UpdateNERDTree()
autocmd WinEnter * call s:CloseIfOnlyNerdTreeLeft()
endif

" Close all open buffers on entering a window if the only
" buffer that's left is the NERDTree buffer
Expand Down Expand Up @@ -216,11 +218,13 @@ RUBY
endfunction

" Define the NERDTree-aware aliases
call s:DefineCommand("cd", "ChangeDirectory")
call s:DefineCommand("touch", "Touch")
call s:DefineCommand("rm", "Remove")
call s:DefineCommand("e", "Edit")
call s:DefineCommand("mkdir", "Mkdir")
if exists("loaded_nerd_tree")
call s:DefineCommand("cd", "ChangeDirectory")
call s:DefineCommand("touch", "Touch")
call s:DefineCommand("rm", "Remove")
call s:DefineCommand("e", "Edit")
call s:DefineCommand("mkdir", "Mkdir")
endif

set wildchar=<Tab> wildmenu wildmode=full
set wildcharm=<C-Z>
Expand Down

0 comments on commit db9b5ec

Please sign in to comment.