I get the old buffers to be opened when I press
Ctrl-O
I want only to browse buffers which I have opened in the current Vim session.
How can you browse fast between current buffers in Vim with Ctrl-O?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
unfortunately I don’t know how to make
CTRL-Oto behave the way you’d like. But I can offer you a couple of tips that might be helpful to you.You can use
g;andg,to jump to the places where you have made a change, but only in the current buffer.I know this is not the same as
CTRL-O/I, since this is only about “changes”, and it only tracks the current buffer, but it might be useful anyway.You can quickly navigate your opened buffers with a mapping in your
.vimrclike this:I know this doesn’t really answer your question, but I thought that maybe these couple of tips might help a little with your vimming.
Edit: I wanted to add, that since you are interested in fast browsing of buffers, I personally recommend a little plugin called QuickBuf:
http://www.vim.org/scripts/script.php?script_id=1910
I map it in my
.vimrcas this:Try it, it way faster than typing
:lsand another neat thing is that you can move on the list withj/kand press<enter>to select the buffer.