X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/e5236e4266edb50c66951fd8b0f2e2abb179a32e..57085bbbda30d6c32719a752fbdc13412bab36fa:/.vimrc diff --git a/.vimrc b/.vimrc index b0a86f8..b5eb605 100644 --- a/.vimrc +++ b/.vimrc @@ -1453,6 +1453,18 @@ autocmd BufNewFile,BufRead /home/madduck/debian/pkg/logcheck/*/rulefiles/linux/* " jump to last known position in file (:he last-position-jump) autocmd BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g`\"zz" | endif +" 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 + "autocmd CursorHoldI * normal mi "DISABLED while broken (shifts left) +"augroup end + " disable list mode when inserting stuff, otherwise keep it enabled, it's " useful (see also setting lcs) augroup listinsert