On Windows, I have this in the registry:
[HKEY_CLASSES_ROOT\*\shell\Open in gVim Tab\command]
@="\"d:\\Vim\\vim74\\gvim.exe\" --remote-tab-silent \"%1\" \"%*\""
and I like to open files with right-click "Open in gVim Tab" in Explorer.
But today when I did this on a file (say, c:\abc's\file), I got this:
E15: Invalid expression: getcwd() ==# 'c:\abc's' | cd - |endif|endif
I encountered this before - when I tried to right-click open files in a drive's root directory (like, j:\file) and back then the message was:
E114: Missing quote: "j:\"|cd -|endif|endif
E15: Invalid expression: getcwd() ==# "j:\|cd -|endif|endif
See the difference? double quotes and single quotes.
If I change c:\abc's to c:\abc''s, vim gives no error.
So maybe getcwd() should check if there is char like ' in the path name.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment