aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2021-11-09 10:31:38 +0900
committernsfisis <nsfisis@gmail.com>2021-11-09 10:32:03 +0900
commita29cbbdbb3d6c25ab31cff7d7a5b4cf088c1e5be (patch)
treec74c965c7128cca54d14ede80ac6ebf3a181b823
parentc2a94b8574c9a486ad7bdf0760aace9dc21cd8b3 (diff)
downloaddotfiles-a29cbbdbb3d6c25ab31cff7d7a5b4cf088c1e5be.tar.gz
dotfiles-a29cbbdbb3d6c25ab31cff7d7a5b4cf088c1e5be.tar.zst
dotfiles-a29cbbdbb3d6c25ab31cff7d7a5b4cf088c1e5be.zip
.vimrc: do not restore cursor position when opening git-rebase-todo
-rw-r--r--.vimrc3
1 files changed, 2 insertions, 1 deletions
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