update OpenNetrw, CloseNetrw

This commit is contained in:
ManjaroOne666 2019-05-27 14:09:29 +01:00
commit 399d897858
2 changed files with 7 additions and 4 deletions

5
vimrc
View file

@ -466,6 +466,7 @@ command! -nargs=1 -complete=command Redir silent call Redir(<q-args>)
"}}}
function! OpenNetrw() abort "{{{
Texplore
setl rnu nu
endfunction
"}}}
@ -474,7 +475,9 @@ function! CloseNetrw(keep_buffer) abort "{{{
let l:current_buffer = bufnr("%")
tabclose
tabprevious
execute "buffer" l:current_buffer
if bufexists(l:current_buffer) > 0
execute "buffer" l:current_buffer
endif
else
tabclose
tabprevious