.vimrc
Meine Konfiguration kann man von hier: http://typedef.ch/stotz/config/vim/ herunterladen. Sie enthält Plugins und ein update Script.
""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Download: http://typedef.ch/stotz/config/vim/.vimrc " File: $HOME/.vimrc " Version: 1.1.0 " Date: 2005-01-15 " Author: Urs Stotz <stotz@typedef.ch> " Comment: Please send me suggestion for improvement " Tested on: Debian, Sun Solaris " and Cygwin on Windows hell. " For vim and gvim you will need only .vimrc """"""""""""""""""""""""""""""""""""""""""""""""""""""""" " vim settings " """""""""""""""" version 6.0 " set autoindent " the same as |:set backspace=indent,eol,start| set backspace=2 " keyword completion with dictionary the command is: |i_CTRL-X_CTRL-K| set dict=$HOME/.vim/dict/perl,$HOME/.vim/dict/programming set formatoptions=tcqr " by a compressed helpfile " set helpfile=$VIMRUNTIME/doc/help.txt.gz set incsearch " always show status line set laststatus=2 " use extended regular expressions set magic set nobackup " use Vim features set nocompatible " quiet and peaceful (your colleges thanks you) set noerrorbells " exrc is a potential security leak set noexrc " I don't like hlsearch set nohlsearch set nonumber set wrap " show the cursor position all the time set ruler " Show (partial) command in status line. set showcmd set showmode set smartindent " create new window below current one set splitbelow set splitright set suffixes=.bak,~,.swp,.o,.info,.aux,.dvi,.bbl,.blg set suffixes+=.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc " Don't wrap words by default set textwidth=0 " For terminals where scrolling is very slow and redrawing is faster. " set ttyscroll=3 set viminfo=\"200,%,'200,/100,:100,@100,f1,h,n$HOME/.vim/viminfo " wildmenu : command-line completion operates in an enhanced mode set wildmenu """"""""""" " tabstop " """"""""""" " see :help 'tabstop' set shiftwidth=2 set tabstop=2 set smarttab set expandtab """""""""""""" " c settings " """""""""""""" set cindent set cinoptions=:0,p0,t0 set cinwords=if,else,while,do,for,switch,case """""""""""""""""" " color settings " """""""""""""""""" if !has ("gui_running") " if vim in a terminal " http://www-2.cs.cmu.edu/~maverick/VimColorSchemeTest/index-perl.html colorscheme default set background=dark " hi Normal ctermfg=white ctermbg=black " hi PreProc ctermfg=gray ctermbg=black else " set guifont=fixed " set guifont=Monospace\ 10 " http://www-2.cs.cmu.edu/~maverick/VimColorSchemeTest/index-perl.html colorscheme blackbeauty set background=dark " colorscheme default " set background=light " hi PreProc guifg=#c0c0c0 guibg=#000040 " hi Normal guifg=black guibg=white endif if has("syntax") && &t_Co > 2 syntax on endif """""""""" " maping " """""""""" " useful for Comments with username and date map #log <ESC>mq:r!date +"\#$USER \%Y-\%m-\%d \%k:\%M:\%S"<CR>`qJ " map CTRL-] to \\ (useful by german keyboards) map \\ <C-]> iab _PERL #!/usr/bin/perl -w<CR><CR>use strict;<CR>use warnings;<CR> " I forget always the last digest iab _NPI 3.1415926535897932384626433832795028841972 iab _NEULER 2.7182818284590452353602874713526624977573 " Make p in Visual mode replace the selected text with the "" register. vnoremap p <Esc>:let current_reg = @"<CR>gvdi<C-R>=current_reg<CR><Esc> """""""""""""""""""""""""""""""""""""" " Additional settings and parameters " """""""""""""""""""""""""""""""""""""" filetype plugin on filetype indent on let html_use_css = 1 let use_xhtml = 1