David Blume commited on 2021-04-07 08:13:48
Showing 1 changed files, with 6 additions and 5 deletions.
... | ... |
@@ -127,12 +127,12 @@ function! ToggleNetrw() |
127 | 127 |
if bufwinnr("NetrwTreeListing") > 0 |
128 | 128 |
for i in range(1, bufnr("$")) |
129 | 129 |
if (getbufvar(i, "&filetype") == "netrw") |
130 |
- silent exe "Bwipeout " . i |
|
130 |
+ silent exe "bwipeout " . i |
|
131 | 131 |
return |
132 | 132 |
endif |
133 | 133 |
endfor |
134 | 134 |
endif |
135 |
- silent Explore %:p:h |
|
135 |
+ silent Vexplore %:p:h |
|
136 | 136 |
endfunction |
137 | 137 |
nmap <leader>e :call ToggleNetrw()<cr> |
138 | 138 |
|
... | ... |
@@ -315,10 +315,11 @@ endif |
315 | 315 |
" Settings that make netrw more like NERDTree |
316 | 316 |
let g:netrw_banner = 0 |
317 | 317 |
let g:netrw_liststyle = 3 |
318 |
-" let g:netrw_browse_split = 4 |
|
318 |
+let g:netrw_browse_split = 4 |
|
319 | 319 |
let g:netrw_altv = 1 |
320 |
-" let g:netrw_winsize = -28 (for absolute width) |
|
321 |
-let g:netrw_winsize = 35 |
|
320 |
+" set g:netrw_winsize to negative for absolute width, positive for relative |
|
321 |
+let g:netrw_winsize = -36 |
|
322 |
+" let g:netrw_winsize = 35 |
|
322 | 323 |
" sort is affecting only: directories on the top, files below |
323 | 324 |
let g:netrw_sort_sequence = '[\/]$,*' |
324 | 325 |
|
325 | 326 |