tpope / vim-vinegar

vinegar.vim: Combine with netrw to create a delicious salad dressing
https://www.vim.org/scripts/script.php?script_id=5671
2.21k stars 87 forks source link

strange behaviour #53

Open ghost opened 8 years ago

ghost commented 8 years ago

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.

tpope commented 8 years ago

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

TheJoeSchr commented 3 years ago

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.