Script to set urxvt font.
[profile.git] / .vimrc
diff --git a/.vimrc b/.vimrc
index 91fd6c1..48a2cf2 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -205,13 +205,17 @@ au BufLeave * if &ft == "make" | call MakeMode_unmap() | endif
 
 " Entering Make mode.
 fun! MakeMode_map()
-  set list
+       call Iain_Vars()
+  let b:iainlist=1
+  call Cycle_List()
+  set ts=8
   set noexpandtab
 endfun
 
 " Leaving Make mode.
 fun! MakeMode_unmap()
-  set nolist
+  call Cycle_List()
+  set ts=2
   set expandtab
 endfun
 
@@ -256,6 +260,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
 
 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
@@ -278,7 +285,10 @@ if has("gui_running")
   se guifont=DejaVu\ Sans\ Mono\ 10
   colo darkblue
 elseif &t_Co > 16
-  colo iain
+  try
+    colo iain
+  catch
+  endtry
 endif
 if has("win32")
   se guifont=DejaVu_Sans_Mono:h10:cANSI
@@ -292,13 +302,13 @@ if &diff
   let &columns = 164
 endif
 
-" Numbers in blue.
-highlight LineNr term=underline cterm=bold guifg=blue ctermfg=blue
-
 " Remember that we are opening the quickfix window.
 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>