From 73489becd0233b2a694b24673e499cbdb8cb5ecb Mon Sep 17 00:00:00 2001 From: ray Date: Fri, 20 Mar 2020 18:00:10 +0000 Subject: [PATCH] update netrw settings and behaviour --- after/ftplugin/netrw.vim | 5 +---- init.plugins.vim | 25 ------------------------- 2 files changed, 1 insertion(+), 29 deletions(-) diff --git a/after/ftplugin/netrw.vim b/after/ftplugin/netrw.vim index f8d0c79..6864fbc 100644 --- a/after/ftplugin/netrw.vim +++ b/after/ftplugin/netrw.vim @@ -1,4 +1 @@ -nmap o -nmap q :call CloseNetrw(1) -nmap Q :call CloseNetrw(0) -setl bufhidden=wipe +setl bufhidden=hide diff --git a/init.plugins.vim b/init.plugins.vim index 8c8d047..88a9c7b 100644 --- a/init.plugins.vim +++ b/init.plugins.vim @@ -329,34 +329,9 @@ let g:mta_filetypes = { let g:netrw_list_hide=netrw_gitignore#Hide() let g:netrw_preview = 1 let g:netrw_winsize = 40 - " let g:netrw_browse_split = 4 let g:netrw_altfile = 1 let g:netrw_mousemaps = 0 - nnoremap nn :call OpenNetrw() - " nnoremap ee :e . - " nnoremap eq :Rex - - function! OpenNetrw() abort "{{{ - Texplore - " setl rnu nu - endfunction - "}}} - - function! CloseNetrw(keep_buffer) abort "{{{ - if a:keep_buffer == 1 - let l:current_buffer = bufnr("%") - tabclose - tabprevious - if bufexists(l:current_buffer) > 0 - execute "buffer" l:current_buffer - endif - else - tabclose - tabprevious - endif - endfunction - "}}} "}}} " #Obsession{{{ " fork of tpope/vim-obsession