vim-vinegar icon indicating copy to clipboard operation
vim-vinegar copied to clipboard

strange behaviour

Open ghost opened this issue 10 years ago • 2 comments

i just start using Vim in Ubuntu terminal.

while i press "-" and from list select the file it always end up opening in new split. how can i make it to open in same split.

ghost avatar Jul 17 '15 15:07 ghost

That should be the default. Check your config; netrw provides an option I do believe.

tpope avatar Jul 17 '15 16:07 tpope

the settings name is let g:netrw_browse_split=0

from help netrw_browse_split:

g:netrw_browse_split when browsing, will open the file by: =0: re-using the same window (default) =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) Note that |g:netrw_preview| may be used to get vertical splitting instead of horizontal splitting.

TheJoeSchr avatar Jan 27 '21 14:01 TheJoeSchr