Ilya Sher wrote:
> Zvi Har'El wrote:
>> I don't think it is worth the trouble insisting to pass % to an external
>> command instead of passing "%". 
> The big plus here is much less typing:
> comparing :e %<CR> vs :e "%"<CR> gives
> 5 vs 7 characters to type.
> 
> Maybe some modifier might be added to % to make
> it usable in "" or ''. I mean like in :he filename-modifiers .

Or would it be too way out to suggest that % automatically quote itself if it 
finds it's not already inside "" or ''? My suspicion is that escaping within 
quotes is more consistent across different shells than without quotes. Trouble 
is, 
is there any time you would want to use % inside quotes yet with other text 
also 
in the quotes...Hmmm...probably someone would have a reason to want to...But 
then, 
in those rare cases, one could resort to :exe and put together a more carefully 
constructed expression. For simple use of % perhaps auto-quoting is the best 
option.

Ben.




Send instant messages to your online friends http://au.messenger.yahoo.com 


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui