X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=.vimrc;h=4c10a31f681ded33d5f3c7d1ff9f23201b7ad651;hb=f47e88a5316392ef25aff9420f1c73c85f5e91fa;hp=4cc55d48e4642630d65a90773c511daf0c640602;hpb=cc26e7919284779febb332c3f96b24575403e21d;p=profile.git diff --git a/.vimrc b/.vimrc index 4cc55d4..4c10a31 100755 --- a/.vimrc +++ b/.vimrc @@ -114,6 +114,9 @@ map Q4 :se ts=4: " Change to ts=8 with Q8. map Q8 :se ts=8: +" Vim 7 has tabs. Default "next tab" mapping is gt. Add "previous tab" as gb. +map gb :tabPrev + call Cycle_StatusLine() au VimLeave * if exists("andyoldcols") | let &columns=andyoldcols | endif @@ -130,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 @@ -163,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()