From c0284e06f6ddd9b88264969e35eb3824b132cae1 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Sun, 5 May 2019 20:17:38 -0700 Subject: [PATCH] [vim] another attempt at fixing netrw buffer closing https://github.com/tpope/vim-vinegar/issues/13#issuecomment-350662313 --- .vimrc | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.vimrc b/.vimrc index 3fa56e7..e2784b8 100644 --- a/.vimrc +++ b/.vimrc @@ -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