Teemu Likonen wrote: > This can't really be fixed. % and # are supposed to be > expanded when user executes the command line. These > characters are being escape()d in the script so that they > don't get expanded twice.
Thanks for joining in. I'm running on low battery and can't quite follow the details at the moment. However, supposing I understood this, I still don't see why you would escape % and #. Are you doing it in case you want to use those characters on the shell command line (that is, nothing to do with the Vim meanings for % and #)? If so, wouldn't there be a bunch of other characters that needed escaping?? > I'll conclude that we can have a sort of fix to this but we > lose filename completion and we lose % and # expansion. They > are too useful to me so I'm not going to change the version > of the script on my computer but for the Vim tip page the fix > would be to remove the -complete=file option: > > command! -nargs=+ Shell call s:RunShellCommand(<q-args>) > > And we need to remove the examples with % expansion. I agree that filename completion is too useful to discard. Again, I'm confused by how the above seems to imply that % and # do something useful for you, yet % failed for Cory. Being really brutal about this, while I may one day want this tip for my personal work, at the moment all I want to do is have someone clean up the proposed new tip so that it makes sense and works as advertised. I know that in the past we've had several inclusionists who want everything retained on the wiki, but those of us who actually do the retaining are sufficiently engaged with the old tips, and we want new tips to be reasonably clean (or at least to have a "todo" to make any shortcomings apparent). John --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
