From c4282e9f748901b48f53ad63059f8dc882e05022 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Mon, 13 Jan 2014 18:42:09 +0100 Subject: Add vim/gvim/zsh config. --- dot_gvimrc | 2 ++ dot_vimrc | 28 ++++++++++++++++++++++++ dot_zshrc | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 104 insertions(+) create mode 100644 dot_gvimrc create mode 100644 dot_vimrc create mode 100644 dot_zshrc diff --git a/dot_gvimrc b/dot_gvimrc new file mode 100644 index 0000000..880338c --- /dev/null +++ b/dot_gvimrc @@ -0,0 +1,2 @@ +set background=light +set guioptions-=T diff --git a/dot_vimrc b/dot_vimrc new file mode 100644 index 0000000..6054b1c --- /dev/null +++ b/dot_vimrc @@ -0,0 +1,28 @@ +set ts=4 +set sw=4 +set expandtab +set sts=4 +autocmd FileType make setlocal noexpandtab + + +" Mini tabs, small "m": +map \m :set expandtab ts=2 sw=2 sts=2 + +" Think "little tabs" and "big tabs": +map \t :set expandtab ts=4 sw=4 sts=4 +map \T :set expandtab ts=8 sw=8 sts=4 + + +set hlsearch +syntax on +set bg=dark + +set mouse=a +set number +set smartindent +set term=xterm-256color + +set cursorline +hi CursorLine cterm=bold ctermbg=0 + + diff --git a/dot_zshrc b/dot_zshrc new file mode 100644 index 0000000..9868448 --- /dev/null +++ b/dot_zshrc @@ -0,0 +1,74 @@ +# The following lines were added by compinstall + +zstyle ':completion:*' completer _complete _ignored _approximate +zstyle ':completion:*' matcher-list '' 'm:{[:lower:]}={[:upper:]}' 'r:|[._-]=* r:|=*' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*' +zstyle ':completion:*' max-errors 1 +zstyle :compinstall filename '/home/katchup/.zshrc' + +autoload -Uz compinit +compinit +# End of lines added by compinstall +# Lines configured by zsh-newuser-install +HISTFILE=~/.histfile +HISTSIZE=1000 +SAVEHIST=1000 +bindkey -v +# End of lines configured by zsh-newuser-install + +## VCS INFO + +autoload -Uz vcs_info + +zstyle ':vcs_info:*' stagedstr '%F{28}%B*%b' +zstyle ':vcs_info:*' unstagedstr '%F{11}%B*%b' +zstyle ':vcs_info:*' check-for-changes true +zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{11}%r' +zstyle ':vcs_info:*' enable git svn +function precmd () { + if [[ -z $(git ls-files --other --exclude-standard 2> /dev/null) ]] { + zstyle ':vcs_info:*' formats ' %F{blue}[%F{green}%b%c%u%F{blue}]' + } else { + zstyle ':vcs_info:*' formats ' %F{blue}[%F{green}%b%c%u%F{red}%B*%b%F{blue}]' + } + + vcs_info +} + + +# PROMPT + +autoload -U promptinit +promptinit +setopt prompt_subst + +PROMPT=" +%B[%?] %F{red}%~%b \${vcs_info_msg_0_} + %F{white}%(#.#.$) " +RPROMPT="%F{cyan}%n@%m%F{white}" + +source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + + +# ENV + +alias ls='ls --color=auto' + +export EDITOR=vim +export GOPATH=$HOME/go + +export PATH=$PATH:$HOME/usr/bin +export LD_LIBRARY_PATH=$HOME/usr/lib + +export WINEARCH=win32 + +alias clipper='ssh auvolat@sas.eleves.ens.fr' +alias cargo='ssh auvolat@cargo.ens.fr' +alias tremble='ssh auvolat@tremble.ens.fr' +alias tulipier='ssh auvolat@tulipier.ens.fr' +# conseil : utiliser tulipier pour bosser, sas.eleves pour IRC + + +# TADA +expand -t 4 $HOME/TODO + + -- cgit v1.2.3