[vim] Fix netrw buffer closing issues

pull/28/head
Alpha Chen 7 years ago
parent 009627eb04
commit 6f0b0a373f

@ -70,7 +70,17 @@ endfunction
augroup RestoreCursor augroup RestoreCursor
autocmd! autocmd!
autocmd BufWinEnter * call RestoreCursor() autocmd BufWinEnter * call RestoreCursor()
augroup END augroup end
augroup netrw_buf_hidden_fix
autocmd!
" Set all non-netrw buffers to bufhidden=hide
autocmd BufWinEnter *
\ if &ft != 'netrw'
\| set bufhidden=hide
\| endif
augroup end
""" GUI """ GUI
@ -127,6 +137,9 @@ if executable('rg')
set grepformat=%f:%l:%c:%m set grepformat=%f:%l:%c:%m
endif endif
" projectionist
nnoremap <leader>a :A<cr>
""" Selecta """ Selecta
" Run a given vim command on the results of fuzzy selecting from a given shell " Run a given vim command on the results of fuzzy selecting from a given shell

Loading…
Cancel
Save