Lose useless PHP mode.
[profile.git] / .vimrc
diff --git a/.vimrc b/.vimrc
index ba4ec76..4c10a31 100755 (executable)
--- a/.vimrc
+++ b/.vimrc
@@ -98,18 +98,24 @@ fun! Show_Tabstop()
   return &ts
 endfun
 
-" Swap hex/decimal statusline with ,x
-map ,x :call Cycle_StatusLine()<CR>:<CR>
-" Swap case-sensitivity with ,c.
-map ,c :call Invert_Case()<CR>:<CR>
-" Cycle list styles with ,l.
-map ,l :call Cycle_List()<CR>:<CR>
-" Change to ts=2 with ,2.
-map ,2 :se ts=2<CR>:<CR>
-" Change to ts=4 with ,4.
-map ,4 :se ts=4<CR>:<CR>
-" Change to ts=8 with ,8.
-map ,8 :se ts=8<CR>:<CR>
+" Clear Q as we will use it for commands.
+map Q <Nop>
+
+" Swap hex/decimal statusline with Qx
+map Qx :call Cycle_StatusLine()<CR>:<CR>
+" Swap case-sensitivity with Qc.
+map Qc :call Invert_Case()<CR>:<CR>
+" Cycle list styles with Ql.
+map Ql :call Cycle_List()<CR>:<CR>
+" Change to ts=2 with Q2.
+map Q2 :se ts=2<CR>:<CR>
+" Change to ts=4 with Q4.
+map Q4 :se ts=4<CR>:<CR>
+" Change to ts=8 with Q8.
+map Q8 :se ts=8<CR>:<CR>
+
+" Vim 7 has tabs.  Default "next tab" mapping is gt.  Add "previous tab" as gb.
+map gb :tabPrev<CR>
 
 call Cycle_StatusLine()
 
@@ -127,11 +133,6 @@ au BufLeave * if &ft == "c" || &ft == "cpp" | call CMode_unmap() | endif
 au BufEnter * if &ft == "perl" | call PerlMode_map() | endif
 au BufLeave * if &ft == "perl" | call PerlMode_unmap() | endif
 
-" ... For PHP files:
-
-au BufEnter * if &ft == "php" | call PHPMode_map() | endif
-au BufLeave * if &ft == "php" | call PHPMode_unmap() | endif
-
 " ... For makefiles:
 
 au BufEnter * if &ft == "make" | call MakeMode_map() | endif
@@ -160,16 +161,6 @@ fun! PerlMode_unmap()
   set foldmethod=manual
 endfun
 
-fun! PHPMode_map()
-  set nocindent
-  set autoindent
-endfun
-
-fun! PHPMode_unmap()
-  set noautoindent
-  set cindent
-endfun
-
 " ... For makefiles:
 
 fun! MakeMode_map()