From f35b6a2a8f647261e8863cb8c571e23b65650891 Mon Sep 17 00:00:00 2001 From: syui Date: Mon, 30 Mar 2026 18:16:45 +0900 Subject: [PATCH] fix vim autosave --- .vim/plugin/autosave.vim | 1 - .vimrc | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.vim/plugin/autosave.vim b/.vim/plugin/autosave.vim index 05bcf31..3f41f53 100644 --- a/.vim/plugin/autosave.vim +++ b/.vim/plugin/autosave.vim @@ -10,7 +10,6 @@ fu! s:autosave_start() au! au TextChanged,CursorHold,InsertLeave * sil! update aug END - echo 'autosave: on' endf fu! s:autosave_stop() diff --git a/.vimrc b/.vimrc index f52ffa9..a871bb9 100644 --- a/.vimrc +++ b/.vimrc @@ -35,3 +35,4 @@ call plug#end() syntax on filetype plugin indent on +au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif