Sunday, March 27, 2011

Re: how to open file from netrw in current window

this is terrific. thanks a lot:)

2011/3/27 KiNgTiGeR <ljh575@gmail.com>
 
 
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?
 

I think you may had a setting about nertw_browse_split in somewhere,  default is opening in the same window.
you can try  :
let g:netrw_browse_split=0
 
  *g:netrw_browse_split*
 when browsing, <cr> will open the file by:
    =0: re-using the same window
    =1: horizontally splitting the window first 
    =2: vertically   splitting the window first 
    =3: open file in new tab
    =4: act like "P" (ie. open previous window)
 

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