On Wed, Dec 1, 2010 at 4:51 PM, Ven Tadipatri <[email protected]> wrote: > I like the way vim allows you to view the files in a directory, then > directly go to them. But then to go back after editing the file I > chose, I repeatedly hit ctrl-O until I get back to the file listing. > It would be nice if I can maybe open the file in a new buffer, and > when I'm done, just close the new buffer I opened. Is there an easy > way to do this? Ctrl+w, followed by enter didn't seem to work, and > neither did gF.
Actually I found out one neat trick - :sp splits a new window (or new buffer? Are the two names interchangeable), but keeps the cursor on the same file, so I just hit enter again to open the file. There's tabbed browsing in vim as well right? Sometimes I notice links being opened in horizontal tabs. What's the difference between these tabs and the buffers that are opened? In other words, what are the advantages/disadvantages of using tabs versus buffers? > Also, on a somewhat related note, is there a way to quickly save a > buffer and then close it. :wq allows you to save and quit, but I'm a > bit annoyed by having to do :w<enter>, :bd<enter>. > I think vim has started to make me lazy to type, where I'm always > looking for 1 or 2 letter commands to do everything. > > -Ven > -- 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
