On 2011-04-15, ZyX wrote: > Reply to message «Re: File path completion relative to current file > directory», > sent 19:27:22 15 April 2011, Friday > by Gary Johnson: > > > This may not be exactly what you're looking for, but here's what I > > do. > > > > :e <C-R>% > > > > where :e can be any ex command requiring a file name and <C-R> means > > Ctrl-R. <C-R>% will expand to the current file name. Then type > > Ctrl-W one or more times to delete the current file name up to the > > directory name. > You can use `%:h<Tab>' instead.
I thought I had tried that some time ago and it didn't work, but I tried it just now and it does. That's much nicer. Thanks. Regards, Gary -- 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