diff --git a/.vim/vimrc b/.vim/vimrc index 24f8062..8b16910 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -1,5 +1,4 @@ " -set autochdir set autoindent set backspace=indent,eol,start set cursorline @@ -95,3 +94,4 @@ au BufNewFile,BufRead *.mk set noexpandtab au BufNewFile,BufRead *.psgi setf perl au BufNewFile,BufRead Makefile set noexpandtab au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif +autocmd BufEnter * silent! lcd %:p:h