Wednesday, December 1, 2010

Re: Opening files in new buffers

Ven Tadipatri 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.
> 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.
>
Try

:Rex

If you use a mouse, then also look at :he netrw-mouse ; you can ge a
double-leftmouse click to return you to the netrw window.

Regards,
Chip Campbell

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

No comments: