Added choice command to wrap zenity or xmessage.
[profile.git] / .vimrc
diff --git a/.vimrc b/.vimrc
index bfb7e9a..d2aa0c5 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -256,6 +256,9 @@ call Mapping("/", ":let @/=\"\"<CR>:<CR>")
 " Forget the Ex mode mapping.
 map Q <NOP>
 
+" Vim tip 99: What's the highlighting group under the cursor?
+call Mapping("h", ":echo \"hi<\" . synIDattr(synID(line(\".\"),col(\".\"),1),\"name\") . '> trans<' . synIDattr(synID(line(\".\"),col(\".\"),0),\"name\") . \"> lo<\" . synIDattr(synIDtrans(synID(line(\".\"),col(\".\"),1)),\"name\") . \">\"<CR>")
+
 endif
 
 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
@@ -302,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<C-R>=substitute(escape(@@,"/\\"),"\n","\\\\n","ge")<CR><CR>
 vnoremap # y?\V<C-R>=substitute(escape(@@,"?\\"),"\n","\\\\n","ge")<CR><CR>