commit 6db145b76218579ecc7336913036735e41d5831b Author: Thomas Kolb Date: Mon Feb 11 14:08:07 2013 +0100 Initial commit of config files diff --git a/vim/gvimrc.local b/vim/gvimrc.local new file mode 100644 index 0000000..8e23219 --- /dev/null +++ b/vim/gvimrc.local @@ -0,0 +1,4 @@ +colorscheme desert +"highlight CursorLine guibg=#222222 +highlight EndSpace guibg=#802020 +match EndSpace /\s\+$/ diff --git a/vim/gvimrc.user b/vim/gvimrc.user new file mode 100644 index 0000000..e69de29 diff --git a/vim/vimrc.local b/vim/vimrc.local new file mode 100644 index 0000000..59eb784 --- /dev/null +++ b/vim/vimrc.local @@ -0,0 +1,33 @@ +" The following are commented out as they cause vim to behave a lot +" differently from regular Vi. They are highly recommended though. +set showcmd " Show (partial) command in status line. +"set showmatch " Show matching brackets. +"set ignorecase " Do case insensitive matching +"set smartcase " Do smart case matching +set incsearch " Incremental search +"set autowrite " Automatically save before commands like :next and :make +"set hidden " Hide buffers when they are abandoned +set mouse=a " Enable mouse usage (all modes) +set hlsearch + +set tabstop=2 +set shiftwidth=2 + +imap +imap + +" settings for LaTeX-Suite +set grepprg=grep\ -nH\ $* +let g:tex_flavor='latex' + +set cursorline + +set printdevice=CanoniP4300 +set printoptions=paper:A4,syntax:y + +set modeline + +filetype plugin on +filetype indent on + +colorscheme koehler diff --git a/vim/vimrc.user b/vim/vimrc.user new file mode 100644 index 0000000..e0c753c --- /dev/null +++ b/vim/vimrc.user @@ -0,0 +1,33 @@ +" configure tags - add additional tags here or comment out not-used ones +set tags+=~/.vim/tags/cpp +set tags+=~/.vim/tags/gl +set tags+=~/.vim/tags/sdl +set tags+=~/.vim/tags/qt4 +set tags+=~/.vim/tags/irrlicht +" build tags of your own project with F11 +map :!ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q . +map :mksession! Session.vim \| wviminfo! viminfo + +" OmniCppComplete +let OmniCpp_NamespaceSearch = 1 +let OmniCpp_GlobalScopeSearch = 1 +let OmniCpp_ShowAccess = 1 +let OmniCpp_ShowPrototypeInAbbr = 1 " show function parameters +let OmniCpp_MayCompleteDot = 1 " autocomplete after . +let OmniCpp_MayCompleteArrow = 1 " autocomplete after -> +let OmniCpp_MayCompleteScope = 1 " autocomplete after :: +let OmniCpp_DefaultNamespaces = ["std", "_GLIBCXX_STD"] +" automatically open and close the popup menu / preview window +au CursorMovedI,InsertLeave * if pumvisible() == 0|silent! pclose|endif +set completeopt=menuone,menu,longest,preview + +" for latex-suite +filetype plugin on +set grepprg=grep\ -nH\ $* +let g:tex_flavor='latex' +let g:Tex_ViewRule_dvi = 'okular' +let g:Tex_ViewRule_pdf = 'okular' + +set modeline +set expandtab +set listchars+=precedes:<,extends:> diff --git a/zsh/zshrc.local b/zsh/zshrc.local new file mode 100644 index 0000000..b53101c --- /dev/null +++ b/zsh/zshrc.local @@ -0,0 +1,78 @@ +# Skip all this for non-interactive shells +#[[ -z "$PS1" ]] && return + +# Use Emacs keybindings +bindkey -e + +# Keybindings converted from readline +bindkey "\e[1~" beginning-of-line +bindkey "\e[4~" end-of-line +bindkey "\e[5~" history-search-backward +bindkey "\e[6~" history-search-forward +bindkey "\e[3~" delete-char +bindkey "\e[2~" quoted-insert +bindkey "\e[5C" forward-word +bindkey "\e[5D" backward-word +bindkey "\e\e[C" forward-word +bindkey "\e\e[D" backward-word +bindkey "\e[1;5C" forward-word +bindkey "\e[1;5D" backward-word +bindkey "\eOc" forward-word +bindkey "\eOd" backward-word +bindkey "\e[1;3C" forward-word +bindkey "\e[1;3D" backward-word +bindkey "\e[8~" end-of-line +bindkey "\eOH" beginning-of-line +bindkey "\eOF" end-of-line +bindkey "\e[H" beginning-of-line +bindkey "\e[F" end-of-line +bindkey "\e[7~" beginning-of-line +bindkey "\e[8~" end-of-line +bindkey "^P" push-input + +# Setup history +HISTFILE=~/.histfile +HISTSIZE=10000 +SAVEHIST=10000 + +# Options +setopt inc_append_history +setopt share_history +setopt hist_ignore_all_dups +setopt hist_ignore_dups +setopt appendhistory +setopt autocd +setopt autopushd +setopt pushdminus +setopt extendedglob +setopt nomatch +setopt notify +setopt complete_in_word + + +# Tab-Completion +zstyle ':completion:*' list-colors ${(s.:.)LSCOLORS} +zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s +zstyle ':completion:*' matcher-list '' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' +zstyle ':completion:*' menu select=1 +zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s +zstyle ':completion:*' use-compctl false +zstyle ':completion:*' verbose true + +# Only show local files in the completion, no gopher://, cdda:// etc. +zstyle ':completion:*:*:mplayer:*' tag-order files + +autoload -Uz compinit +compinit + +# Enable color support of ls +if [[ "$TERM" != "dumb" ]]; then + if [[ -x `which dircolors` ]]; then + eval `dircolors -b` + alias 'ls=ls --color=auto' + fi +fi + +# Set prompt +PS1=$'%(!.%{\e[01;32m%}.%{\e[01;31m%})%(?..%? )%(!.%{\e[01;31m%}.%{\e[01;32m%})%n@%m%{\e[01;34m%} %~ %{\e[00m%}%(!.#.$) ' + diff --git a/zsh/zshrc.user b/zsh/zshrc.user new file mode 100644 index 0000000..b5dc3b1 --- /dev/null +++ b/zsh/zshrc.user @@ -0,0 +1,19 @@ +# extract the current branch from git repositories +parse_git_branch() { + git branch 2>/dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' +} + +# enable command substitution in prompts +setopt prompt_subst + +# Set prompt +PS1=$'%(?..%{\e[01;31m%}%? )%{\e[01;32m%}%n@%m%{\e[01;34m%} %~%{\e[01;33m%}$(parse_git_branch) %{\e[00m%}%(!.#.$) ' + +# aliases +alias q3defrag="/opt/quake3/ioquake3 +set fs_game defrag" +alias uiae="setxkbmap de nodeadkeys" +alias asdf="setxkbmap de neo" +alias ASDF="setxkbmap de neo" +alias aria2nw="urxvtc -e aria2c" +alias matlab="MATLAB_JAVA=/usr/lib/jvm/icedtea6-bin/jre/ /opt/MATLAB/R2011a/bin/matlab" +alias paste="curl -F 'content=@-' http://p.tkolb.de/p"