Saturday, March 26, 2011

Re: how to open file from netrw in current window

 
 
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)
 

No comments:

Post a Comment