From eef91e3a572c89f14dde42f2a1c2c172bc7087fc Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 5 Jan 2010 18:42:02 +1300 Subject: [PATCH] add hack to keep copy of vimperator ctrl-i buffer --- .vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.vimrc b/.vimrc index 2855c1c..08916b9 100644 --- a/.vimrc +++ b/.vimrc @@ -1456,6 +1456,9 @@ autocmd BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "norm " leave the w mark whenever a file is written autocmd BufWrite * normal mw +" keep an extra backup of vimperator's ctrl-i +autocmd BufWritePost */vimperator-*.tmp exe 'write ' . fnameescape((exists('$TMPDIR') ? $TMPDIR : '/tmp') . '/vimperator.ctrl-i.' . strftime('%Y.%m.%d.%H%M%S')) + " leave the i mark whenever we go idle (after updatetime) augroup markidle autocmd CursorHold * normal mi -- 2.39.5