version 5.5 " ================================================================== " Last update: Sun Aug 01 00:24:00 PDT 1999 " Purpose: Setup file for the editor Vim (Vi IMproved) " Availability: This file is based on " 23K " 65K " (mirror) " Author: Sven Guckes guckes@vim.org (guckes@math.fu-berlin.de) " " Related files: " http://www.math.fu-berlin.de/~guckes/vim/src/emacs.vim " http://www.math.fu-berlin.de/~guckes/vim/src/latex.vim " http://www.math.fu-berlin.de/~guckes/vim/src/html.vim " http://www.math.fu-berlin.de/~guckes/vim/syntax/ " Note: Modified for use with Skunkware 99 for UnixWare 7 " by Ronald Joe Record (rr@sco.com). See the file " /usr/local/share/vim/vimrc-with-comments for comments nmap ,e :e ~/.P/ map ,rn :0r ~/.P/txt/New.page.form.html nmap ,p :!chmod 644 % iab Ybr
iab Yhr
iab Yp

map ,me yiwi<ea>"> iab Ycom FXs vmap ,com v``>i--> iab Ybl

T>i iab Yb T>i vmap ,b "zdiz2F> iab Ycen
T>i vmap ,cen "zdi
z
T>i iab Ycod T>i vmap ,cod "zdizT>i iab Yi T>i vmap ,i "zdizT> iab Ytt T>i vmap ,tt "zdizT> iab Ypre
T>i
  vmap ,pre mz:''>o`z
  iab  Yxmp T>i
  vmap ,xmp mz:''>o`z
  iab  Ytd  T>i
  vmap ,td  "zdizT>i
  iab  Ytr  T>i
  vmap ,tr  "zdizT>i
  iab  Yh1 

T>i vmap ,h1 "zdi

z

2F> iab Yh2

T>i vmap ,h2 "zdi

z

2F> iab Yh3

T>i vmap ,h3 "zdi

z

2F> iab Yh4

T>i vmap ,h4 "zdi

z

2F> iab Yh5
T>i vmap ,h5 "zdi
z
2F> iab Yh6
T>i vmap ,h6 "zdi
z
2F> iab Yol
k iab Yul
k iab Ydl

5kA iab Yli
  • iab Ydt

    kA iab Ydp

    kkkA iab Yhref ?""a vmap ,href "zdizF"i iab Ylink ?""a vmap ,link "zdi>zF"i iab Yname ?""a vmap ,name "zdi>z2F> iab Yimg [] align= src="">?""a iab Ymail ?:a vmap ,mail "zdi>z2F> vmap ,Mail "zdiz2F> iab Ynews ?:a vmap ,news "zdiz2F> iab Ypage page:link:text:kkA vmap ,Cblu "zdiz vmap ,Cgre "zdiz vmap ,Cred "zdiz imap ;& & imap ;K © imap ;" " imap ;< < imap ;> > imap \Ae Ä imap \Oe Ö imap \Ue Ü imap \ae ä imap \oe ö imap \ue ü imap \ss ß nmap ,= :%s/^===\(.*\)$/

    \1<\/h1>/c set noautoindent set autowrite set nobackup set backspace=2 set background=dark set nocompatible set comments=b:#,:%,fb:-,n:>,n:) set dictionary=/usr/ucblib/dict/words set digraph set noerrorbells set esckeys set formatoptions=cqrt set helpheight=0 if version==503 set helpfile=/usr/local/share/vim/vim53/doc/help.txt endif if version==504 set helpfile=/usr/local/share/vim/vim54/doc/help.txt endif set hidden set highlight=8r,db,es,hs,mb,Mr,nu,rs,sr,tb,vr,ws set nohlsearch set noicon set noignorecase set noinsertmode set iskeyword=@,48-57,_,192-255,-,.,@-@ set joinspaces set laststatus=2 set lazyredraw set magic set modeline set modelines=1 set nonumber set path=.,,~/.P/vim,~/.P/vim/syntax,~/.P/vim/source,$VIM/syntax/ set report=0 set ruler set shell=zsh set shiftwidth=8 set shortmess=at set showcmd set showmatch set showmode set suffixes=.aux,.bak,.dvi,.gz,.idx,.log,.ps,.swp,.tar set nostartofline set tabstop=8 set term=$TERM if &term=="xterm" set t_Co=8 set t_AB=[%?%p1%{8}%<%t%p1%{40}%+%e%p1%{92}%+%;%dm set t_AF=[%?%p1%{8}%<%t%p1%{30}%+%e%p1%{82}%+%;%dm endif set notextmode set textwidth=79 set notitle set nottyfast set nottybuiltin set ttyscroll=0 set viminfo=%,'50,\"100,:100,n~/.viminfo set visualbell set t_vb= set whichwrap=<,> set wildchar= set wrapmargin=1 set nowritebackup iab Npi 3.1415926535897932384626433832795028841972 iab Ne 2.7182818284590452353602874713526624977573 iab Yalpha abcdefghijklmnopqrstuvwxyz iab YALPHA ABCDEFGHIJKLMNOPQRSTUVWXYZ iab Ydigit 1234567890 iab Yruler 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 iab Ypass "You are in a maze of twisty little passages, all alike." iab Yell [...] vmap ,ell c[...] iab alos also iab aslo also iab charcter character iab charcters characters iab exmaple example iab shoudl should iab seperate separate iab teh the iab nciht nicht iab doer oder iab Dreckfuhler Druckfehler iab Laurant Laurent iab YDDS dash-dash-space iab YKT Komplexitaetstheorie iab YRA Rechnerarchitektur iab YPM Pattern Matching iab YICM International Congress of Mathematicians iab YAW You are welcome! :-) iab YEV Enjoy Vim! cab ELMALIAS ~/.elm/aliases.text cab Erc ~/.elm/elmrc cab Mrc ~/.muttrc cab Src ~/.slrnrc cab Zrc ~/.zshrc cab SIGs ~/.sigs let SIGS=expand("~/.sigs") let MAILNEWSFILES = "*.article,*.followup,*.letter,mutt*" ab Agnksa js@xs4all.nl (Jeroen Scheerder) ab Amutt me@cs.hmc.edu (Michael Elkins) ab Aslrn davis@space.mit.edu (John E. Davis) ab Avim bram@vim.org (Bram Moolenaar) iab Nafw alt.fan.warlord iab Nahbou alt.humor.best-of-usenet iab Nzedat bln.announce.fub.zedat.d iab Ncsd bln.announce.fub.cs.d iab Nce comp.editors iab Nhtml comp.infosystems.www.authoring.html iab Nelm comp.mail.elm iab Npine comp.mail.pine iab Ndcm de.comm.mobil iab Nmobil de.comm.mobil iab Nlynx comp.infosystems.www.browsers.misc iab Nnetscape comp.infosystems.www.browsers.misc iab Nmutt comp.mail.mutt iab Nnn news.software.nn iab Newbie news.newusers.questions iab Nnsr news.software.readers iab UFT Followup-To: iab UMCT Mail-Copies-To: MYADDR iab UNG Newsgroups: iab URT Reply-To: MYADDR iab UFUB Organization: Freie Universitaet Berlin ab HPV http://www.vim.org/ ab URLvimfaq http://www.grafnetix.com/~laurent/vim/faq.html ab FTPVIM ftp://ftp.fu-berlin.de/pub/misc/editors/vim/ ab FTPSCO ftp://ftp.sco.com/ ab FTPSKUNK ftp://ftp.sco.com/skunkware/ ab URLSKUNK http://skunkware.dev/skunkware/ ab URLSCO http://www.sco.com/ cab HEMAIL ^\(From\\|Cc\\|To\\|Date\\|Subject\\|Message-ID\\|Message-Id\\|X-\) cab HNEWS ^\(From\\|Cc\\|To\\|Date\\|Subject\\|Message-ID\\|X-\\|Newsgroups\) iab Ydate =strftime("%y%m%d") iab Ytime =strftime("%H:%M") iab YDT =strftime("%y%m%d %T") iab YDATE =strftime("%a %b %d %T %Z %Y") map nnoremap Q gq vnoremap Q gq map #tw :set textwidth==col(".") map [14~ :set paste!:set paste? map K map :shell noremap `" noremap gf gf`" nmap :W :w map :alias map map :which map noremap 2 map ,SO :so ~/.P/vim/syntax/ map ,V :so $VIM/syntax/ cnoremap cnoremap cnoremap cnoremap cnoremap b cnoremap f cnoremap cnoremap [D cnoremap [C if has("unix") let vimrc='~/.vimrc' else let vimrc='$VIM\_vimrc' endif nn ,u :source =vimrc nn ,v :edit =vimrc imap [3~ imap  cmap  cmap ;rcm %s///g nmap ,Sws :%s/ /_/g vmap ,Sws :%s/ /_/g nmap ,Stws :%s/ *$/_/g vmap ,Stws :%s/ *$/_/g map ,L 1G/Last update:\s*/e+1CYDATE map ,,L 1G/Last change:\s*/e+1CYDATE map ,Et :e /tmp/screen-exchange map ,cel :%s/^\s\+$// map ,del :g/^\s\+$/d nmap ,cqel :%s/^[>]\+$// vmap ,cqel :s/^[> ]\+$// vmap ,dot :s/\.\+ \+/. /g vmap ,gary :s/^>[ ]\+\([^>]\)/> \1/ nmap ,ksr :%s/ \+/ /g vmap ,ksr :s/ \+/ /g map ,Sel :g/^$/,/./-j map ,Sbl :g/^\s*$/,/\S/-j autocmd! au! BufNewFile mutt* let @"="X-Editor: Vim-".version." http://www.vim.org\n"|exe 'norm 1G}""P' au BufNewFile,BufRead .letter,mutt*,nn.*,snd.* set tw=78 au BufEnter *.[ch] set ai et sw=4 ts=4 au BufEnter *.pl set ai et sw=4 ts=4 au BufEnter *.html set ai sw=2 ts=2 au BufEnter *.shtml set ai sw=2 ts=2 au BufEnter *.java set ai sw=4 ts=4 map ,dp vip:s/^> // vmap ,dp :s/^> // map ,qp vip:s/^/> / vmap ,qp :s/^/> / nmap ## vip:s/^/#/ vmap ## :s/^/#/ vmap ,kpq :s/^> *[a-zA-Z]*>/> >/ vmap ,fq :s/^> \([-":}\|][ ]\)/> > / nmap ,we vip:v/HEMAIL/d vmap ,we :v/HEMAIL/d nmap ,wp vip:v/HNEWS/d vmap ,wp :v/HNEWS/d imap gqap map gqap nmap ,b r nmap ,j Vjgq nmap ,B rVjgq map ,cc 1G}jyykPICc: $x map ,mlu 1G}OPriority: urgent map ,cs 1G/^Subject: yypIX-Old--W map ,re 1G/^Sub:s/\(Re: \)\+/Re: / map ,Re 1G/^Subject: :s/Re: Re\[\([0-9]\+\)\]/Re[\1]/ vmap ,( v``>a) vmap ,) v``>a) map ,hi 1G}oHi! map ,ha 1G}oHello, again! map ,H G/^\* /e+1ye1G}oHallo, !Po map ,kqs G?^> -- $d} nmap ,at :r ~/.P/txt/ map ,Env `>a\end{ENVNAME}` vmap ,Env ,Env map ,ENV `>o\end{ENVNAME}` vmap ,ENV ,ENV map Y" ``'' vmap ,dr :!tr A-Za-z N-ZA-Mn-za-m map :split map :bp map :bn map :bd map [19~ :split map [20~ :bp map [23~ :bn map [31~ :bd imap 0 imap x imap imap $ imap imap b B imap f W map OA map OB map OC map OD imap OA imap OB imap OC imap OD map [A map [B map [C map [D imap [A imap [B imap [C imap [D if has("syntax") " The following sources the main syntax file, " ie. "$VIM/syntax/syntax.vim", see ":help :syn-on": syntax on " Redefine the color for "Comment": hi! Comment term=bold ctermfg=cyan guifg=Blue endif iab YPATHFILE =expand("%:p") iab YFILE =expand("%:t:r") iab YPATH =expand("%:h") vmap #b y:!netscape -remote "openurl "" au VimLeave * echo "Thanks for using Vim"version