aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2023-01-09 21:32:27 +0100
committerMax Christian Pohle2023-01-09 21:32:27 +0100
commit7845fa4e392e8808693096329bf3638e3231186f (patch)
tree3d24fa2ac5ecb3d696ce67a314f3d5ee5f1b2d77
parentb0762c939a9c1cd1e8e8d88d3491c28d556e993e (diff)
downloadvim-recently-used-master.tar.bz2
vim-recently-used-master.zip
Added restore cursor position functionalityHEADmaster
-rw-r--r--plugin/vim-recently-used.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin/vim-recently-used.vim b/plugin/vim-recently-used.vim
index f3c4b00..c8f8f11 100644
--- a/plugin/vim-recently-used.vim
+++ b/plugin/vim-recently-used.vim
@@ -36,3 +36,7 @@ autocmd VimEnter *
36 \ | execute ':RecentlyUsed" 36 \ | execute ':RecentlyUsed"
37 \ | wincmd w' 37 \ | wincmd w'
38 \ | endif 38 \ | endif
39
40" When opening files: Restore last cursor position from shadafile or viminfo
41autocmd BufReadPost *
42 \ call setpos(".", getpos("'\""))
..