Linux, Unix, /etc

Danger Will Robinson! You are now entering a condescending Unix user zone!
Sponsored links (requires javascript):

Paul Dunne's .exrc file

NB: control characters are represented here in the form of two characters, e.g. ^M is control-M. In a real .exrc, the control characters themselves are present, but that wouldn't display properly on the web. To use this file or part of it, replace the printable form by the real form.

"
" generic options
"
set autoindent
set exrc
set flash
set mesg
set noautowrite
set noerrorbells
set noshowmatch
set nowrapscan
set report=1
set ruler
set shell=/bin/ksh
set shiftwidth=4
set showmode
set tabstop=4
set tildeop
set nowarn
set wrapmargin=2
"
" version-specific options
"
"" vim
"set compatible
"set directory=>/tmp/
"set visualbell
"" nvi
set cedit=^[
set filec=
set leftright
" this appears to fuck stuff up (!)
"set extended
"
" key-mappings
"
"" general
"
" spell-check file
map V :w^M:!ispell -S -x %^M:e!^M^M
" comment out a line, C-style
map C I/* ^[A */^[
"
"map  :q^M
"" formatting
"
" format trn post
map zt 1G/^$^Mj:.,$!fmt -70^M}
" format a paragraph (news/mail)
map F {!} fmt -72 -c^M}
" format a paragraph 
map f {!} fmt -72 -c^M}
" center current line
map c :.!centre -70^M
" hardlink in everything2
map l ebi[^[ea]^[
"
" Execute current line (without deleting it; #x above deletes it)
" Uses buffer y. - is normally the same as k^
map - "yyy@y
" quote the current paragraph with >
map z> mc{jma}kmb:'a,'bs/^/> /^M'c
" tidy up 
map zf {!} fmt -70 -c -s^M}
" move a bookmark to the file of Linux bookmarks
map zl 0:.w>> ~/.linux_bookmarks.html^Mdd
" produce a numbered list
map zn {jma}k:'a,.!number^M
" sort a paragraph
map zs {jma}k:'a,.!sort^M
" insert today's date
map zd !!jdate^M
" comment out a line (shell)
map z# I#^[
map zw :!wc -w %^M
"
"" movement
"
" goto beginning of file
map g 1G
"
"" file ops
"
" write file
map  :w^M
" next file
map  :n^M
" previous file
map  :prev^M
"
"" filtering
"
" strip leading whitespace
map s :'a,.s/^[	 ]*//g^M
" quote the current paragraph with >
map q mc{jma}kmb:'a,'bs/^/> /^M'c
" reverse order of lines 
map r :g/.*/m0^M
" replace multiple blank lines with just one blank line
map j :v/./.,/./-1join^M
"
" e-mail
"
" sign mail/news message
map S Go^M^[I— ^[:r ~/.signature^M0
" format MH message
map zm 1G/-—^Mj:.,$!fmt -70^M}
" unquote blank lines in an e-mail repy
map zu :%s/^> $//^M
" launch vi?
"vmap ,net y:!lynx <C-R>"
"
" abbreviations
"
" common typos
ab Pual Paul
ab basci basic
ab chagne change
ab eamil email
ab eidtor editor
ab hte the
ab monring morning
ab mroe more
ab mvoe move
ab noly only
ab peices pieces
ab probelm problem
ab ssytem system
ab taht that
ab teh the
ab thsi this
ab waht what
ab wehn when
ab wnat want
ab wnated wanted
ab Falt Flat
ab seh she
ab nad and
ab recieved received
ab baout about
ab ahd had
ab whiel while
ab htat that
ab cleint client
ab itmes items
ab hwo how
ab hse she
ab aviod avoid
ab ahve have
ab clcok clock
ab dorve drove
ab alos also
ab taks task
ab wich which
ab eidting editing
ab yoru your
ab aritcle article
ab ti it
ab wroking working
ab emial email
ab msot most
ab wiht with
ab iwth with
ab soem some
ab soemthing something
ab macors macros
ab macor macro
ab Teh The
ab tiem time
ab peice piece
ab otehr other
ab tkae take
ab htat that
ab hwen when
ab sapce space
ab iwll will
ab toher other
ab Macros Macros


[back to Linux, Unix, /etc]



Contents licensed under the GPL