From: martin f. krafft Date: Tue, 5 Jan 2010 05:42:02 +0000 (+1300) Subject: add hack to keep copy of vimperator ctrl-i buffer X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/eef91e3a572c89f14dde42f2a1c2c172bc7087fc add hack to keep copy of vimperator ctrl-i buffer --- 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