Wiki: Andreas Vimrc


set nocompatible
set bs=2
set ai
set backup
set viminfo='20,\"50

set history=50
set ruler
set mouse=a
set term=$TERM

"" Vimspell-Variable ~/.vim/plugin/vimspell.vim
let spell_auto_type = ""
let spell_language_list = "ngerman"

"" Calendar-Variable ~/.vim/plugin/calendar.vim
let g:calendar_navi_label = 'Zurück,Heute,Vor'
let g:calendar_mruler = 'Jan,Feb,Mär,Apr,Mai,Jun,Jul,Aug,Sep,Okt,Nov,Dez'
let g:calendar_wruler = 'So Mo Di Mi Do Fr Sa'
let g:calendar_monday = 1

autocmd BufEnter * nmap ,mc !!boxes -d slim<CR>
autocmd BufEnter * vmap ,mc !boxes -d slim<CR>
autocmd BufEnter * nmap ,xc !!boxes -d slim -r<CR>
autocmd BufEnter * vmap ,xc !boxes -d slim -r<CR>

map ## :!w3m %<cr>

map ,y :ru /indent/html.vim<cr>gg=G<cr>

nmap ,i :!ispell -d deutsch -w "äüöÄÜÖß" % <CR><CR>

" Footnotes
ab ~1 [1]<esc>:/^--\s/-1/<cr>o<insert><cr>Footnotes:<cr>----------<cr>[1]
ab ~2 [2]<esc>:/^Footnotes\:/+2/<cr>o<insert>[2]
ab ~3 [3]<esc>:/^Footnotes\:/+3/<cr>o<insert>[3]
ab ~4 [4]<esc>:/^Footnotes\:/+4/<cr>o<insert>[4]
ab ~5 [5]<esc>:/^Footnotes\:/+5/<cr>o<insert>[5]

vmap ,tc :!tac<CR>

vmap #b y:!mozilla -remote "openurl <C-R>""

nmap ,x :r! w3m -dump_source

nmap 2txt :!w3m -dump % > %.txt<CR>

map ,mod :!chmod 755 %<CR>:x<CR>

vmap ,re :!rev<CR>

vmap ,ll :s/.*/\U&/<CR>
vmap ,lf :s/[^ ].*/{&}/<CR>

map ,ch :set nobackup<CR>:w<CR>:!tidy -indent -upper % > upper-%<CR>:x<CR>:set backup<CR>

map ,uu :w<CR>:!uuencode % %-uuen > %-uuen<CR>:x<CR>

map <F2> :set noautoindent<CR>
map <F3> :set autoindent<CR>

" the current 'textwidth' with ^R (control-j):
  imap <C-r> <C-O>gqap
  map <C-r> gqap

"Rot13
  imap <C-x> <C-O>g?}
   map <C-x> g?}


  map <C-l> :!links file://%<CR>
  command View :!links file://%

map üü :w<CR>:!/usr/sbin/sendmail -oi -t -fAndreas@tux.tld < % <CR>:w<CR>
map öö :so ${VIMRUNTIME}/syntax/mail.vim<CR>1G<insert>To:  <CR>Subject: <CR>User-Agent: VIM 6.1<CR>Mime-Version: 1.0<CR>Content-Type: text/plain; charset=iso-8859-1<CR>Content-Transfer-Encoding: quoted-printable<CR><ESC>1G$<insert>

set nowrap

set report=0

nmap 2HTML :so $VIMRUNTIME/syntax/2html.vim

" Mail colours
"hi mailHeaderKey  links to Type
"hi mailSubject    links to String
"hi mailHeader     ctermfg=brown
"hi mailEmail      links to Special
hi mailSignature  ctermfg=darkred
hi mailQuoted1    ctermfg=darkblue
hi mailQuoted2    ctermfg=darkred
hi mailQuoted3    ctermfg=darkgreen
hi mailQuoted4    ctermfg=darkmagenta
hi mailQuoted5    ctermfg=darkblue
hi mailQuoted6    ctermfg=darkcyan
hi mailQuoted7    ctermfg=darkgreen
hi mailQuoted8    ctermfg=darkred
hi mailquoted9    ctermfg=darkmagenta

Part of CategoryVimRc


Copyright © 2007 RobertMelton.com