Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 327 Bytes

vim-restore-file-edit-location.md

File metadata and controls

13 lines (8 loc) · 327 Bytes

title: Vim: Keep location in file after exit tags: vim

You can exit vim and then load a file at the same location you were previously at.

Put this in your .vimrc file.

	au BufWinLeave * mkview
	au BufWinEnter * silent loadview

Your views will be placed at .vim/views.

This actually restores your entire editing session.