From 0bbed0c683e21e75555874e94a3eda7b9074efd3 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Tue, 3 Dec 2019 11:31:45 -0800 Subject: [PATCH] [vim] fixes for netrw weirdness https://github.com/tpope/vim-vinegar/issues/13 --- .vimrc | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.vimrc b/.vimrc index 3f8127d..dc43b5c 100644 --- a/.vimrc +++ b/.vimrc @@ -90,7 +90,7 @@ set foldmethod=syntax " Fold on the syntax " Editing {{{ -" set hidden +set hidden if !has("nvim") set noesckeys endif @@ -111,16 +111,6 @@ augroup RestoreCursor autocmd BufWinEnter * call RestoreCursor() 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 - augroup DisableAutoComment autocmd BufEnter * setlocal formatoptions-=o augroup END @@ -170,7 +160,8 @@ set smartcase " netrw -let g:netrw_fastbrowse=0 +" https://github.com/tpope/vim-vinegar/issues/13 +let g:netrw_liststyle=0 " ripgrep if executable('rg')