Skip to content
Browse files

Add a NERDTree-aware mkdir

  • Loading branch information...
1 parent 3a071dc commit 90cd2a0ea240850fc1862831fb8c5f3474edc1f3 @wycats wycats committed
Showing with 7 additions and 0 deletions.
  1. +1 −0 CHANGELOG
  2. +6 −0 gvimrc
View
1 CHANGELOG
@@ -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
View
6 gvimrc
@@ -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
@@ -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"))

0 comments on commit 90cd2a0

Please sign in to comment.
Something went wrong with that request. Please try again.