Skip to content

Commit

Permalink
Unset autochdir in vim
Browse files Browse the repository at this point in the history
... and don't ever show the netrw buffer in the buffer list.
tpope/vim-vinegar#13
  • Loading branch information
yangle committed Jun 2, 2019
1 parent 1d5261f commit c7648e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ set nocp
execute pathogen#infect()
call pathogen#helptags()

set autochdir " cd to current file
set autoindent " pass indentation of the current line to the new line
set backspace=2 " backspace through leading spaces & linebreak
set breakindent " visually indent wrapped lines
Expand Down Expand Up @@ -168,6 +167,9 @@ nnoremap gl :SidewaysRight<cr>
" vinegar: hide dotfiles by default
let g:netrw_list_hide = '\(^\|\s\s\)\zs\.\S\+'
" get rid of the lingering netrw buffer
" https://github.com/tpope/vim-vinegar/issues/13
let g:netrw_fastbrowse = 0

" ripgrep
let g:rg_command = "sorted-rg-vimgrep"
Expand Down

0 comments on commit c7648e8

Please sign in to comment.