X-Git-Url: http://git.iain.cx/?p=profile.git;a=blobdiff_plain;f=.vimrc;h=d2aa0c5f1d4740a9e860ca95caa3227b7423e166;hp=2b6167a348d64ff8ce1b8b29212600422b3e4c34;hb=736982b20af663fed7884dc39fe050eabdfbd511;hpb=42b87d14b952594606783e373badd8aca1b1eb8f diff --git a/.vimrc b/.vimrc index 2b6167a..d2aa0c5 100644 --- a/.vimrc +++ b/.vimrc @@ -305,6 +305,9 @@ highlight LineNr term=underline cterm=bold guifg=blue ctermfg=blue au BufWinEnter quickfix let g:quickfixing=1 au BufUnload * if &ft == "qf" | let g:quickfixing=0 | endif +" Allow in-place editing of crontabs. +au FileType crontab set backupcopy=yes + " Make * and # work the way you expect in visual mode. vnoremap * y/\V=substitute(escape(@@,"/\\"),"\n","\\\\n","ge") vnoremap # y?\V=substitute(escape(@@,"?\\"),"\n","\\\\n","ge")