Saturday, March 26, 2011

Re: how to open file from netrw in current window

I restart gvim and the file is opened in current window now. I did nothing. I don't which option will affect the netrw's open mode.

2011/3/26 Charles E Campbell Jr <drchip@campbellfamily.biz>
wei gao wrote:
Hi,
I find that if I open (vs) two windows and one of them is netrw file explore, when I try to open a file in netrw window (enter key), the file will be opened in another window. How could I make the file is opened in current netrw file exploer window?

Since the behavior you're asking for is the default netrw behavior, the problem is: what in your setup is causing this behavior?

To verify this, try making a file called simple.vimrc with the following contents:

set nocp
filetype plugin indent on


then use

 vim -u simple.vimrc  somefile
<c-w>v
 :e .
 (pick a file via netrw and press <cr> with the cursor atop some file)

I'm getting the file opened in the current netrw file explorer window as you requested -- do you?

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

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

Post a Comment