X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=.vimrc;h=a4e0298645932246cd14632a8a2c3613076cad57;hb=49905abcdb92513b1204c40c1c598c25fb314a49;hp=1017617b85d7c823bba0e14ee1ba104dbf423b51;hpb=c38f69aebc35edde583a54442646eada27364255;p=profile.git diff --git a/.vimrc b/.vimrc index 1017617..a4e0298 100644 --- a/.vimrc +++ b/.vimrc @@ -254,7 +254,7 @@ if &diff endif " Status bar matches the colour. -highlight StatusLine guifg=white guibg=blue ctermbg=white ctermfg=blue +highlight StatusLine guifg=white guibg=darkblue ctermbg=white ctermfg=darkblue " Numbers in blue. highlight LineNr term=underline cterm=bold guifg=blue ctermfg=blue @@ -316,9 +316,9 @@ endfun " the Qx sequence quickly enough. Vim 6 allows us to forget the Ex mapping. map Q -" Swap hex/decimal statusline with Qx +" Swap hex/decimal statusline with Qx. map Qx :call Cycle_HexStatusLine(): -" Change statusline verbosity with Qv +" Change statusline verbosity with Qv. map Qv :call Cycle_VerboseStatusLine(): " Cycle list styles with Ql. map Ql :call Cycle_List(): @@ -328,6 +328,9 @@ map Qt :Tlist map Qf :se foldenable!: " Toggle quickfix window with Qq. map Qq :call Cycle_Quickfix(): +" Rerun filetype detection with Qs. The s is for syntax, as this will be +" updated as a side-effect. +map Qs :filetype detect: endif @@ -337,6 +340,10 @@ endif if version >= "700" version 7.0 +" Change status bar colour when entering insert mode. +au InsertEnter * highlight StatusLine guifg=white guibg=darkred ctermbg=white ctermfg=darkred +au InsertLeave * highlight StatusLine guifg=white guibg=blue ctermbg=white ctermfg=blue + " Make diffs vertical by default. se diffopt+=vertical