-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
copy file with m-c does not work when using bash cygwin as a shell in Windows #1033
Comments
@jordi-frei cygwin is a tricky beast. It wants to behave like Linux with the bash utilities, but it's trapped inside of Windows. I suspect vim is treating this situation as if it's running on Windows. What does this command tell you?
All three of these variables can be set it your |
@PhilRunninger thank you for your reply. I run none of these options work. what els can I try? |
Make sure the string has a space after the command, ie. |
still doesn't work, it keeps showing 'could not copy node'
the rest of the m options work: a, m, d, p and l |
I found a solution, but I don't know if it is a bug or not. I edited file fs_menu.vim and commented the following three lines from the function "NERDTreeCopyNode()":
I noticed that those lines were not present in the rest of similar functions. With this correction and the change in my vimrc as suggested by @PhilRunninger 👍 Now it works! is this a bug? |
BTW, I had the same problem with removing directories and I wused the same workaround successfully. |
Yeah, it's probably a bug, in that only |
ok, if I run it on gVim I get 0 (but I selected cygwin as the shell in gVim) the m-c option from within cygwin terminal works just fine It is a bit confusing but I hope I could explain. |
There was an issue earlier on that led me to add the lines you referenced above: #1033 (comment). Issue #776 was raised, and I think now that the fix (#952 and 842f5ca) may have been too hasty. According to the Vim documentation, I'd like @ZSaberLv0 to respond to this comment so that I can better understand the situation. Is |
@PhilRunninger For me, Why
Why
I have EDIT since newer vim has |
@jordi-frei Are you still interested in a fix for this one? I have a pull request for you to try out: #1150 @ZSaberLv0 I wasn't notified of your edit; I just noticed it the other day. Can you verify this pull request is compatible with your Thanks to you both. |
with |
I use bash from cygwin as the shell in Gvim. When I try to copy a node NERDtree fails to do so. Resetting the shell to cmd.exe fixes the problem but I would prefer to use bash.
m-d and m-a to delete or create a new node works well
Thank you in advance
Self-Diagnosis
:h NERDTree
Environment (for bug reports)
Operating System: Windows 10
Vim/Neovim version
:echo v:version
:Gvim 8.0.586NERDTree version, found on 1st line in NERDTree quickhelp
?
: 5.3.1vimrc settings
settings for using cygwin bash as a shell
other
other
Steps to Reproduce the Issue
Current Result (Include screenshots where appropriate.)
could not copy node
Expected Result
a new file should be created
The text was updated successfully, but these errors were encountered: