[vim] another attempt at fixing netrw buffer closing

https://github.com/tpope/vim-vinegar/issues/13#issuecomment-350662313
pull/28/head
Alpha Chen 6 years ago committed by Alpha Chen
parent c8c61b63d1
commit c0284e06f6

@ -40,7 +40,6 @@ set wildmode=list:longest,full
" set t_Co=256 " set t_Co=256
set background=dark set background=dark
" let g:solarized_termcolors=256
colorscheme paramount colorscheme paramount
fun! s:highlight() fun! s:highlight()
@ -111,15 +110,15 @@ augroup RestoreCursor
autocmd BufWinEnter * call RestoreCursor() autocmd BufWinEnter * call RestoreCursor()
augroup end augroup end
augroup netrw_buf_hidden_fix " augroup netrw_buf_hidden_fix
autocmd! " autocmd!
" Set all non-netrw buffers to bufhidden=hide " " Set all non-netrw buffers to bufhidden=hide
autocmd BufWinEnter * " autocmd BufWinEnter *
\ if &ft != 'netrw' " \ if &ft != 'netrw'
\| set bufhidden=hide " \| set bufhidden=hide
\| endif " \| endif
augroup end " augroup end
augroup DisableAutoComment augroup DisableAutoComment
autocmd BufEnter * setlocal formatoptions-=o autocmd BufEnter * setlocal formatoptions-=o
@ -168,6 +167,10 @@ set smartcase
" Plugins {{{ " Plugins {{{
" netrw
let g:netrw_fastbrowse=0
" ripgrep " ripgrep
if executable('rg') if executable('rg')
set grepprg=rg\ --no-heading\ --vimgrep set grepprg=rg\ --no-heading\ --vimgrep

Loading…
Cancel
Save