(config) fix spaces in search alias
authorBen Doumenc <bdoumenc@gmail.com>
Sun, 6 Apr 2014 19:20:24 +0000 (21:20 +0200)
committerBen Doumenc <bdoumenc@gmail.com>
Sun, 6 Apr 2014 19:20:24 +0000 (21:20 +0200)
vim/customVimrc

index d3e23db..0568076 100644 (file)
@@ -128,9 +128,9 @@ function! <SID>AgDir(word)
     if (&ft == "nerdtree")
         if (has_key(g:NERDTreeFileNode.GetSelected(), 'path'))
             if (isdirectory(g:NERDTreeFileNode.GetSelected().path.str()))
-                let l:path = g:NERDTreeFileNode.GetSelected().path.str()
+                let l:path = '"' . g:NERDTreeFileNode.GetSelected().path.str() . '"'
             else 
-                let l:path = g:NERDTreeFileNode.GetSelected().path.getParent().str()
+                let l:path = '"' . g:NERDTreeFileNode.GetSelected().path.getParent().str() . '"'
             endif
         endif
     endif