Skip to content

Commit df11672

Browse files
committed
Added
1 parent 02d9e81 commit df11672

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

vim-restore-file-edit-location.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
title: Vim: Keep location in file after exit
2+
tags: vim
3+
4+
You can exit vim and then load a file at the same location you were previously at.
5+
6+
Put this in your .vimrc file.
7+
8+
au BufWinLeave * mkview
9+
au BufWinEnter * silent loadview
10+
11+
Your views will be placed at .vim/views.
12+
13+
This actually restores your entire editing session.

0 commit comments

Comments
 (0)