From 129717b4bd361f97bd4be5a840e656d8a4e7037b Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Mon, 17 Mar 2025 16:01:33 +0800 Subject: [PATCH] feat: use autochdir. --- .vim/vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vim/vimrc b/.vim/vimrc index dc0901a..d2daefb 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -1,4 +1,5 @@ " +set autochdir set autoindent set backspace=indent,eol,start set cursorline @@ -116,7 +117,6 @@ au BufNewFile,BufRead Makefile set noexpandtab au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif au FileType css,dart,html,javascript,javascriptreact,json,ruby,typescript,typescriptreact,yaml set shiftwidth=2 au FileType go set noexpandtab shiftwidth=4 tabstop=4 -autocmd BufEnter * silent! lcd %:p:h autocmd BufReadPost COMMIT_EDITMSG exe "normal! gg" map :NERDTreeToggle "