Thursday, December 3, 2009

Re: If I quit a buffer how do I keep the one I was last editing displayed (when using NERDTree)??


On Wed, Dec 2, 2009 at 6:28 PM, John Beckett <johnb.beckett@gmail.com> wrote:
 
I do not use Nerdtree, but it sounds like you should be typing
Ctrl-^ (probably Ctrl + the 6 key) to switch back to buffer1.
 

Thanks John. I ended up going with this script http://www.vim.org/scripts/script.php?script_id=1147 (mentioned as link off the wiki site you posted.)

The problem with just Ctrl-^ (as far as I can tell) is that it doesn't really delete the buffer. I want the buffer completely gone, but wanted the previous buffer I was working on to then become visible. Using the kill buffer plugin did the trick.

(side note: buffers still confuse the heck out of me even after reading this faq http://vim.wikia.com/wiki/Vim_buffer_FAQ  Seems like 99% of typical editor users would simply want buffers to act like typical tabs in other editors.)

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

No comments: