" ---------------------------------------------------------------------- " file: ~/.vimrc " author: Christopher (moparx) - www.linuxinfusion.com " modified: June 21, 2008 " vim:enc=utf-8:ai:si:ts=5:sw=5:et:nu:fdm=indent:fdn=1: " ---------------------------------------------------------------------- " settings ------------------------------------------------------------- syntax on filetype on filetype plugin on filetype indent on set history=40 set enc=utf8 set autoindent set expandtab set scrolloff=3 set shiftwidth=5 set smartindent set smarttab set tabstop=5 set background=dark set backspace=indent,eol,start set completeopt=longest,menuone set cursorline set esckeys set foldenable set foldmethod=indent set ignorecase set incsearch set mouse=a set modeline set modelines=5 set nocompatible set nohlsearch set number set pastetoggle= set ruler set shortmess+=aI set showcmd set showmatch set showmode set spell set title set viminfo=!,'30,<80,s100,h set virtualedit=all set wildchar= set wildmenu let g:miniBufExplModSelTarget = 1 let g:miniBufExplorerMoreThanOne = 2 let g:miniBufExplModSelTarget = 1 let g:miniBufExplUseSingleClick = 1 let g:miniBufExplMapWindowNavVim = 1 let g:miniBufExplVSplit = 15 let g:miniBufExplSplitBelow=1 let Tlist_Use_Right_Window = 0 let Tlist_Exit_OnlyWindow = 1 let Tlist_Enable_Fold_Column = 0 let Tlist_Compact_Format = 1 let Tlist_File_Fold_Auto_Close = 0 let Tlist_Inc_Winwidth = 1 let twitvim_login = "moparx:PASSWORD" " abbreviations and corrections ---------------------------------------- iab Lurl http://www.linuxinfusion.com iab LCurl http://www.linuxinfusion.com/my-computers iab LDurl http://www.linuxinfusion.com/dot-files-configs iab LKurl http://www.linuxinfusion.com/pubkey.asc iab Vurl http://www.virtualinfusion.net iab IMj XMPP: moparx@jabber.org iab Tdate =strftime("%m/%d/%Y - %T %Z") iab wahts what's iab neehs needs iab responce response iab whats what's iab hows how's iab i I iab irc IRC iab isnt isn't iab wasnt wasn't iab internet Internet iab cant can't iab peolpe people iab linux GNU/Linux iab teh the iab iso ISO " key mapping ---------------------------------------------------------- map th :tabprev map tl :tabnext map tn :tabnew map tc :tabclose vmap bq :call VBlockquote () vmap bqt :call VBlockquote(" map :YRShow map :set number! map :VTreeExplore map :TMiniBufExplorer map :Tlist map :GetLatestVimScripts " functions ------------------------------------------------------------ function! VBlockquote(...) range " Author: Ralf Arens " put `| ' at beginning of line exe a:firstline.",".a:lastline."s/^/| /" " remove trailing whitespaces exe a:firstline.",".a:lastline.'s/^| $/|/e' " generate tail exe a:lastline."put ='`----'" " set mark normal m' " generate title let @z = ',----' if (a:0 != 0) " -> extra argument a:1 let @z = @z."[ ".a:1." ]" endif exe a:firstline."put! z" " jump back to mark normal '' endfunction " set automatic behavior ----------------------------------------------- au BufReadPost *.doc %!catdoc "%" au BufNewFile,BufRead .followup,.article.*,.letter.*,/tmp/mutt-*,nn.*,snd.*,mutt* set tw=80 au BufReadPost *.html,*.xml source ~/.vim/scripts/closetag.vim