" $Id: .vimrc,v 1.32 1998/12/24 05:44:46 philiph Exp $ "my defaults version 5.1 "set autoindent set autowrite set backspace=2 set noerrorbells set esckeys "I use the built in formatter - it works better than par. "set formatprg=par set graphic set noignorecase set magic set mouse=n set nonumber set report=0 set ruler set shiftwidth=2 set showcmd set showmatch set showmode set suffixes=.bak.swp set tabstop=8 set textwidth=0 "set wrapmargin=3 let is_fvwm2 = 1 "Let's try some abbreviations for my bad spelling ia teh the ia hte the ia fo of ia ot to ia oyur your ia becuase because ia htis this ia Uw7 UW7 ia Uw701 UW701 ia Uw710 UW710 ia Uw2 UW2 ia Uw213 UW213 ia availalble available ia thier their ia oyu you ia inof info ia doen done ia wnat want ia MAybe Maybe ia taht that ia htat that ia wiht with ia ave have ia jsut just ia bakc back ia sohuld should ia tat that ia prot port ia info info ia jst just ia Os OS ia acocunt account ia tihs this ia soemthing something ia MY My ia shoudl should "invoke ispell with 'm'. map m :w:!ispeller.pl -x %:e! "print page with 'v'. map v :w:!a2ps -1 --borders=no -o /tmp/%.ps % map :suspend "examples of how to automates signatures and the like. imap Thanks,Phil. imap Later,Phil. " A handy macro to toggle coloring from light to dark. nmap \ :sy off:if &bg == 'dark'se bg=lightelsese bg=darkensy on:se bg " With Vim-4 the format command was just 'Q' and " I am too used to it. So I need this back! nnoremap Q gq vnoremap Q gq " Try to figure out if term is light or dark. " and set background variable accordingly. " this is probably broken. if &term == "ansi.crt" || "at386ie" || "scoansi" || "linux" set background=dark elseif &term == "xterm-color" || "xterm" set background=dark elseif $TERMBG == "dark" set background=dark elseif $TERMBG == "light" set background=light else set background=dark endif " try to get all the possible 16 colors with xter, default is " only 8 colors. if &term == "xterm-color" || "xterm" set t_Co=16 set t_AB=[%?%p1%{8}%<%t%p1%{40}%+%e%p1%{92}%+%;%dm set t_AF=[%?%p1%{8}%<%t%p1%{30}%+%e%p1%{82}%+%;%dm else set t_Co=8 set t_Sf=[3%dm set t_Sb=[4%dm endif syntax on " highlighted search drives me nuts set nohlsearch augroup mutt "Mangle mutt temp files for pleasant editing. au! " When starting to edit a file: au BufRead mutt-* .,$!sed -f $HOME/.headerfix au BufRead mutt-* set nobackup " au BufRead mutt-* let TERMBG = "light" au BufRead mutt-* hi Statement ctermfg=DarkRed au BufRead mutt-* map m :w:!ispeller.pl %:e! au BufRead mutt-* map :r /usr/tmp/reply.txt au BufRead mutt-* imap :r /usr/tmp/reply.txti au BufRead mutt-* set keywordprg=ext.pl " au BufRead mutt-* normal :g/^> -- $/,/^$/-1d/^$ au BufRead mutt-* set textwidth=72 au BufRead mutt-* set wrapmargin=3 au BufRead mutt-* set autoindent au BufRead mutt-* syntax on augroup END augroup pine "Mangle pine temp files for pleasant editing. au! " When starting to edit a file: au BufRead pico.* set nobackup au BufRead pico.* let TERMBG = "dark" au BufRead pico.* set background=dark au BufRead pico.* hi Statement ctermfg=DarkRed au BufRead pico.* map m :w:!ispeller.pl %:e! au BufRead pico.* map :r /usr/tmp/reply.txt au BufRead pico.* imap :r /usr/tmp/reply.txti au BufRead pico.* set keywordprg=ext.pl " au BufRead pico.* normal :g/^> -- $/,/^$/-1d/^$ au BufRead pico.* set textwidth=72 au BufRead pico.* set wrapmargin=3 au BufRead pico.* set autoindent au BufRead pico.* syntax on augroup END augroup slrn "Mangle slrn temp files for pleasant editing. au! " When starting to edit a file: au BufRead .letter set nobackup " au BufRead .letter let TERMBG = "light" au BufRead .letter hi Statement ctermfg=DarkRed au BufRead .letter map m :w:!ispeller.pl %:e! au BufRead .letter map :r /usr/tmp/reply.txt au BufRead .letter imap :r /usr/tmp/reply.txti au BufRead .letter set textwidth=72 au BufRead .letter set wrapmargin=3 au BufRead .letter set autoindent augroup END augroup cvs "Settings for editing cvs commit messages au! au BufRead cvs* set textwidth=72 au BufRead cvs* set wrapmargin=3 augroup END augroup html "Settings for editing html files. au! au BufRead *.html set textwidth=72 au BufRead *.html set wrapmargin=3 au BufRead *.html set noai au BufRead *.html set nobackup augroup END