merge :sp, :e, :tabe etc. history filename completion

0 views
Skip to first unread message

kba

unread,
Dec 17, 2008, 11:04:55 AM12/17/08
to v...@vim.org
hi vimmers,

I love vim's window handling and I use it frequently. One thing that
really annoys me though is that vim's history is only based on the
command, not on the filename. Consider the following example:

:20vsp file1.pl
[quit vim, restart]
:e file2.pl

Now there is only file2.pl full-screen. I want to edit file1.pl. I
remember: In my last vim session I opened it, but how? I try

:e <Up>...
[nothing]
:sp <Up>...
[nothing]
:vsp <Up>...
[nothing]
:tabe <Up>...
[nothing]

So I have to do ":history" and find it by hand. Is there to complete
filenames for the various open commands in history based on the
*file name* rather than the *command*? It appears more logically
consistent to me that I should have to remember the file rather
than the command (and possibly count) I used to open it.

Thanks for any hints/tips/plugins and cordial shalom
kba

fritzophrenic

unread,
Dec 17, 2008, 4:23:19 PM12/17/08
to vim_use
Try using the command-window, which you can search through with / as
in any other window.

http://vim.wikia.com/wiki/Using_command-line_history
Reply all
Reply to author
Forward
0 new messages