Skip to content

Commit

Permalink
Add a NERDTree-aware mkdir
Browse files Browse the repository at this point in the history
  • Loading branch information
wycats committed Dec 31, 2010
1 parent 3a071dc commit 90cd2a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Expand Up @@ -3,6 +3,7 @@
* FEATURE: Opening with an explicit directory starts on NERDTree
* FEATURE: If you close the last window before NERDTree, close NERDTree
* EXTERNAL: Block insert mode in NERDTree [wycats/nerdtree]
* FEATURE: Add a Mkdir NERDTree/Command-T aware alias

2010-12-28 wycats

Expand Down
6 changes: 6 additions & 0 deletions gvimrc
Expand Up @@ -148,6 +148,11 @@ function Remove(file)
call s:UpdateNERDTree()
endfunction

function Mkdir(file)
execute "!mkdir " . a:file
call s:UpdateNERDTree()
endfunction

function Edit(file)
if exists("b:NERDTreeRoot")
wincmd p
Expand All @@ -171,6 +176,7 @@ 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")

" Include user's local vim config
if filereadable(expand("~/.gvimrc.local"))
Expand Down

0 comments on commit 90cd2a0

Please sign in to comment.