From d746f192c03baf97dcd5e74ab5bf98c48958a398 Mon Sep 17 00:00:00 2001 From: djib Date: Sat, 14 Dec 2019 09:12:33 +0100 Subject: [PATCH] Reopen files in last edit position --- vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vimrc b/vimrc index ab0c13e..b56d8d2 100644 --- a/vimrc +++ b/vimrc @@ -67,6 +67,9 @@ set hidden " Keep previous buffer when opening a new file set wildmenu " Sexy autocomplete set wildmode=longest:full,full set wildignorecase +" Uncomment the following to have Vim jump to the last position when +" reopening a file +au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif " Mappings let mapleader=","