update OpenNetrw, CloseNetrw

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

View File

@ -1,4 +1,4 @@
nmap <buffer><silent> o <CR>:call CloseNetrw(1)<CR>
nmap <buffer><silent> q :call CloseNetrw(0)<CR>
nmap <buffer> o <CR>
nmap <buffer><silent> q <CR>:call CloseNetrw(1)<CR>
nmap <buffer><silent> Q :call CloseNetrw(0)<CR>
setl bufhidden=wipe
setl rnu nu

3
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
if bufexists(l:current_buffer) > 0
execute "buffer" l:current_buffer
endif
else
tabclose
tabprevious