From a29cbbdbb3d6c25ab31cff7d7a5b4cf088c1e5be Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 9 Nov 2021 10:31:38 +0900 Subject: .vimrc: do not restore cursor position when opening git-rebase-todo --- .vimrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index 9537571..427e152 100644 --- a/.vimrc +++ b/.vimrc @@ -607,7 +607,8 @@ Autocmd BufEnter,WinEnter,BufWinEnter * " Jump to the last cursor position when you open a file. Autocmd BufRead * - \ if 0 < line("'\"") && line("'\"") <= line('$') && &filetype !~# 'commit' | + \ if 0 < line("'\"") && line("'\"") <= line('$') && + \ &filetype !~# 'commit' && &filetype !~# 'rebase' | \ execute "normal g`\"" | \ endif -- cgit v1.2.3-70-g09d2