Declare functions and commands as override so you can source the .vimrc without errors.
git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@22
6be0d1a5-5cfe-0310-89b6-
964be062b18b
:autocmd!
" Set up our variables.
:autocmd!
" Set up our variables.
if ! exists("b:iainlist") | let b:iainlist = 0 | endif
if ! exists("b:iainhex") | let b:iainhex = 1 | endif
endfun
if ! exists("b:iainlist") | let b:iainlist = 0 | endif
if ! exists("b:iainhex") | let b:iainhex = 1 | endif
endfun
call Iain_Vars()
let b:iainlist = b:iainlist + 1
if b:iainlist > 2 | let b:iainlist = 0 | endif
call Iain_Vars()
let b:iainlist = b:iainlist + 1
if b:iainlist > 2 | let b:iainlist = 0 | endif
call Iain_Vars()
if b:iainlist == 0
" No list.
call Iain_Vars()
if b:iainlist == 0
" No list.
-" Cycle between hex and decimal display of toolbar stuff
-fun Cycle_StatusLine()
+" Cycle between hex and decimal display of toolbar stuff.
+fun! Cycle_StatusLine()
call Iain_Vars()
let b:iainhex = ! b:iainhex
if b:iainhex
call Iain_Vars()
let b:iainhex = ! b:iainhex
if b:iainhex
- set statusline=%2n\:\ %<%f\ [%{Show_List()}%{Show_Case()}%{Show_Tabstop()}]%y%m%r\ %=0\x%02B\ (%3.6c,%-4.6l)\ 0\x%04.6O\ \|\ %4.6L\ %P
+ set statusline=%2n\:\ %<%f\ [%{Show_List()}%{Show_Case()}%{Show_Tabstop()}%Y%M%R]\ %=0\x%02B\ (%3.6c,%-4.6l)\ 0\x%04.6O\ \|\ %4.6L\ %P
- set statusline=%2n\:\ %<%f\ [%{Show_List()}%{Show_Case()}%{Show_Tabstop()}]%y%m%r\ %=%b\ (%3.6c,%-4.6l)\ %4.6o\ \|\ %4.6L\ %P
+ set statusline=%2n\:\ %<%f\ [%{Show_List()}%{Show_Case()}%{Show_Tabstop()}%Y%M%R]\ %=%b\ (%3.6c,%-4.6l)\ %4.6o\ \|\ %4.6L\ %P
map <C-"> viwvbi"<ESC>ea"<ESC>
map - yyp:s/./-/g<RETURN>:let @/=''<RETURN>:<RETURN>
map = yyp:s/./=/g<RETURN>:let @/=''<RETURN>:<RETURN>
map <C-"> viwvbi"<ESC>ea"<ESC>
map - yyp:s/./-/g<RETURN>:let @/=''<RETURN>:<RETURN>
map = yyp:s/./=/g<RETURN>:let @/=''<RETURN>:<RETURN>
if &ic | return "c" | else | return "C" | endif
endfun
if &ic | return "c" | else | return "C" | endif
endfun
" ... For C-like languages:
" ... For C-like languages:
set cinkeys=0{,0},:,0#,!^F,o,O,e
set cinwords=if,else,while,do,for,switch
endfun
set cinkeys=0{,0},:,0#,!^F,o,O,e
set cinwords=if,else,while,do,for,switch
endfun
endfun
" .. For Perl files:
endfun
" .. For Perl files:
set cinkeys=0{,0},:,!^F,o,O,e
set cinwords=if,else,while,do,for,eval
endfun
set cinkeys=0{,0},:,!^F,o,O,e
set cinwords=if,else,while,do,for,eval
endfun
set foldmethod=manual
endfun
set foldmethod=manual
endfun
set nocindent
set autoindent
endfun
set nocindent
set autoindent
endfun
set noautoindent
set cindent
endfun
" ... For makefiles:
set noautoindent
set cindent
endfun
" ... For makefiles:
set list
set noexpandtab
endfun
set list
set noexpandtab
endfun
set nolist
set expandtab
endfun
set nolist
set expandtab
endfun