08.12.06: Updated ~/.vimrc and ~/.screenrc
29.12.04: Updated ~/.vimrc and added ~/.zshrc
Here you can find some of my configuration files. Perhaps they are useful for somebody.
That's my ~/.vimrc (download):
set nocompatible syntax on "set guifont=-misc-fixed-medium-r-semicondensed-*-*-120-*-*-c-*-koi8-r set guifont=Monospace\ 8 set ruler set backspace=indent,eol,start set showcmd set incsearch set hlsearch set laststatus=2 set wrap set showcmd set suffixes=.bak,~,.swp,.o "set showbreak=+ augroup cprog "autocmd BufRead *.c,*.cpp,*.h,*.rc,*.pc,*.m set cindent et tabstop=2 shiftwidth=2 autocmd BufRead *.rc,*.pc,*.py,*.css,*.js,*.html,*.php set tabstop=4 shiftwidth=4 expandtab autocmd BufRead *.c,*.cpp,*.h,*.m,*.mm set cindent tabstop=4 shiftwidth=4 expandtab augroup END "set statusline=%<%f\ %h%m%r%=off=%-5o\ dec=%-3b\ hex=%-4(0x%B%)\ pos=%3P "set statusline=%<%f\ %h%m%r%=c=%c%V\ l=%l/%L\ o=%o\ d=%b\ x=0x%B\ %P set statusline=%<%f\ %h%m%r%=%l/%L,%c%V%12([%3b\ 0x%2B]%)%5P highlight statusLine term=bold cterm=bold ctermfg=white ctermbg=blue highlight statusLineNC ctermfg=white ctermbg=darkgrey cterm=NONE "map ^X :set noautoindent nocindent<RETURN> set fileencoding=utf8 set fileencodings=utf8 "set encoding=utf8 set termencoding=latin1 set background=dark set mouse=a set ttymouse=xterm2
This ~/.screenrc automatically starts irssi and micq. You can switch between the windows with F1-F8 (download):
nethack on bindkey -k k1 select 0 bindkey -k k2 select 1 bindkey -k k3 select 2 bindkey -k k4 select 3 bindkey -k k5 select 4 bindkey -k k6 select 5 bindkey -k kb stuff ^H bindkey -k kD stuff \033[3~ # lets ascii mouse work in vim term xterm #term xterm-color termcapinfo xterm|rxvt ti@:te@ #termcapinfo xterm-color|rxvt ti@:te@
Nice prompt, ls with colors and no anti aliasing for GTK 2 applications (download):
PS1="[\t \u@\h \W]\$ " export GDK_USE_XFT=0 export LSCOLORS="ExFxxxxxCxxxxxxCxCxxxx" alias ls='ls -G'
Note that now I use zsh instead of bash.
My ~/.zshrc has some key bindings, completion, aliases and a color prompt (download):
autoload -U compinit compinit alias d='dirs -v' alias ls='ls -F --color=auto' alias l='ls -F --color=auto' alias mv='mv -i' alias load='while :; do echo > /dev/null; done' autoload -U promptinit promptinit setopt autocd autopushd pushdignoredups hist_verify correct # completion zstyle ':completion:*' completer _complete _match _approximate zstyle ':completion:*:match:*' original only zstyle ':completion:*:approximate:*' max-errors 1 numeric zstyle ':completion:*:*:kill:*' menu yes select zstyle ':completion:*:kill:*' force-list always zstyle ':completion:*:cd:*' ignore-parents parent pwd # keys bindkey '^[Od' emacs-backward-word bindkey '^[Oc' emacs-forward-word bindkey '^[[4~' end-of-line bindkey '^[[1~' beginning-of-line # colors gray_color=$'%{\e[00;37m%}' green_color=$'%{\e[01;32m%}' lightblue_color=$'%{\e[01;36m%}' darkblue_color=$'%{\e[00;36m%}' yellow_color=$'%{\e[01;33m%}' lightred_color=$'%{\e[01;31m%}' darkred_color=$'%{\e[00;31m%}' reset_color=$'%{\e[0m%}' PS1="${gray_color}[${green_color}%* ${darkblue_color}%n${lightblue_color}@\ ${darkblue_color}%m ${darkred_color}<${lightred_color}%?${darkred_color}> \ ${yellow_color}%c${gray_color}]%# ${reset_color}" # dump cores ulimit -c unlimited # gnustep #. /usr/lib/GNUstep/System/Library/Makefiles/GNUstep.sh #export CVS_RSH="/usr/bin/ssh" #export CVSROOT=":ext:cvs@server:/var/www/cvs" x(){ test $2&&(_i=$1;shift;while test $_i -gt 0;do $@;let _i--;done;)||echo 'need 2 arguments';}
A smaller font for GTK 1.x applications (download):
style "default" { font = "-*-helvetica-medium-r-normal--10-*-*-*-*-*-*-*" } widget_class "*" style "default"
I'm using xmodmap because it allows me to write german umlauts by pressing Alt+a/o/u on an English keyboard. So here's my ~/.xmodmap (download):
! to apply: xmodmap ~/.xmodmap keycode 113 = Mode_switch keycode 115 = Mode_switch keycode 116 = Mode_switch keycode 34 = bracketleft braceleft udiaeresis Udiaeresis keycode 47 = semicolon colon odiaeresis Odiaeresis keycode 48 = apostrophe quotedbl adiaeresis Adiaeresis keycode 30 = u U udiaeresis Udiaeresis keycode 32 = o O odiaeresis Odiaeresis keycode 38 = a A adiaeresis Adiaeresis keycode 117 = SunCompose
This is my ~/.inputrc for libreadline, see comments for details (download)
# go a word backward/forward with ctrl+left/ctrl+right "\eOc": forward-word "\eOd": backward-word # enable delete "\e[3~": delete-char # allow 8 bit characters, like german umlauts set convert-meta off set input-meta on set output-meta on
Zurück zu www.eggdrop.ch | Back to www.eggdrop.ch Last update: 08.12.06 |