NerdTree Copy Command in Windows 7

I do not see the menu options for the command Copy. Here is the menu that I see on my Windows 7 machine:

NERDTree Menu. Use j/k/enter and the shortcuts indicated
==========================================================
> (a)dd a childnode
  (m)ove the curent node
  (d)elete the curent node

According to the plugin documentation , the command is Copynot supported on all platforms.

A textual filesystem menu is provided which allows you to create/delete/move file 
and directory nodes as well as copy (for supported OSs)

Has anyone been able to get this to work on Windows?

+5
source share
2 answers

The root cause of the problem is discussed in detail (rather colorfully) in this post (ht romainl ). I managed to find a solution using the cp.exeone supplied with msygit .

Make sure you cp.exeare on your way

cp.exe <GIT_HOME>\bin. ``\bin directory. So I copied cp.exe and msys-1.0.dll` .

g:NERDTreeCopyCmd

_vimrc

let g:NERDTreeCopyCmd= 'cp -r '

s:Path.copy.

2297-2299 ~/vimfiles/bundle/nerdtree/plugin/NERD_tree.vim (, vim)

  • 2297-2299

    let dest = s:Path.WinToUnixPath(a:dest)
    
    let cmd = g:NERDTreeCopyCmd . " " . escape(self.str(), s:escape_chars) . " " . escape(dest, s:escape_chars)
    
  • let dest = a:dest
    let cmd = 0
    if s:running_windows
        let cmd = g:NERDTreeCopyCmd . '"' . self.str() . '" "' . dest . '"'
    else
        let cmd = g:NERDTreeCopyCmd . " " . escape(self.str(), s:escape_chars) . " " . escape(dest, s:escape_chars)
    endif
    
+2

, Gow

choco install -y gow

vim

let g:NERDTreeCopyCmd= 'cp -r'

: https://github.com/scrooloose/nerdtree/issues/152

PS: choco https://chocolatey.org/

+2

All Articles