From aba1ef81dcce8e1d0837557b0832f1117c2b885a Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Sun, 24 Jan 2016 19:30:58 +0100 Subject: [PATCH] vimrc: can't live without this feature anymore :D --- etc/root/dot.vimrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/etc/root/dot.vimrc b/etc/root/dot.vimrc index 075872635a1..0ec53680f97 100644 --- a/etc/root/dot.vimrc +++ b/etc/root/dot.vimrc @@ -4,3 +4,10 @@ syntax on set ts=8 set hls set nu + +autocmd BufReadPost * + \ if ! exists("g:leave_my_cursor_position_alone") | + \ if line("'\"") > 0 && line ("'\"") <= line("$") | + \ exe "normal g'\"" | + \ endif | + \ endif