Tuesday, January 26, 2010

Re: lookforward during filename completion

Christian Brabandt wrote:
>> to change the filename without touching the path. This doesn't touch the
>> extension however which I may or may not want, but doing filename
>> completion with ^X^F adds in the extension making it
>>
>> s = "/long/path/i/dont/want/to/retype/to/otherfile.txt.txt"
>>
>> which is a bit annoying to have to clean up. So I can see where the OP
>> is coming from wanting this :)
>
> This has happened to me too. I never bothered for a solution, since
> Ctrl-W is just one key press away.

Unless you have a filename like "foo.tar.gz" in which case you
have to remember to do ^W 2x :) It would certainly be nice to
have Vim do the "right" thing. or perhaps have an "inner
file-name without path" text object but that would be asking a lot :)

-tim


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

No comments: