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

Loading…
Cancel
Save