Sunday, August 28, 2016

same filename completion across different ways of opening files

In an active gvim window, let us say I do

:e file1.txt
:sp file2.txt
:sf file3.txt
:vert sf file4.txt
:tabe file5.txt
:tabf file6.txt

As you can see, I am using different ways (:edit, :split, :splitfind
etc.,) to open up different files. Now if I do "up arrow" on any of
these type of commands, I want vim to cycle through all the files as
opposed to simple completion. For example, if I do

:sf <UP>

I want the output to be :sf file6.txt instead of :sf file3.txt. A
subsequent <UP> will result in :sf file5.txt etc.,

Ideally I would be able to specify what commands are to be grouped
this way. But it is not a big deal if the feature exists in a
non-configurable way. Is this possible? If not, can you please
consider adding it to vim?

thanks
raju
--
Kamaraju S Kusumanchi | http://raju.shoutwiki.com/wiki/Blog

--
--
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: