dotfiles

configuration files for different softwares
git clone git://z3bra.org/dotfiles
Log | Files | Refs

commit 7497399131268ca3625d8dce8a93cd7cc6da3ba8
parent 1a79005fad591959b6fe85d360514619e88bec84
Author: Willy Goiffon <w.goiffon@gmail.com>
Date:   Thu Jul 18 13:05:49 2013

Merge branch 'master' of gitorious.org:z3bra/dotfiles

Diffstat:
 Xresources                             | 2 +-
 evilwmrc                               | 2 +-
 vim/bundle/custom/colors/sandstorm.vim | 2 +-
 vimrc                                  | 8 ++++++++
 zshrc                                  | 3 +++
 5 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/Xresources b/Xresources @@ -5,7 +5,7 @@ ! ============================================================== ! Terminal colors ---------------------------------------------- -*background:[64]#232323 +*background:#232323 *foreground:#e8e9ca *color0: #535353 diff --git a/evilwmrc b/evilwmrc @@ -2,7 +2,7 @@ fn gelly mask1 mod4 mask2 alt altmask shift -term urxvtc +term urxvt snap 10 bw 8 fg #443c28 diff --git a/vim/bundle/custom/colors/sandstorm.vim b/vim/bundle/custom/colors/sandstorm.vim @@ -21,7 +21,7 @@ if has("gui_running") || &t_Co == 256 highlight Comment term=NONE cterm=NONE ctermfg=0 ctermbg=NONE highlight Constant term=NONE cterm=NONE ctermfg=226 ctermbg=NONE highlight Cursor term=NONE cterm=NONE ctermfg=66 ctermbg=222 - highlight CursorLine term=NONE cterm=underline ctermfg=NONE ctermbg=NONE + highlight CursorLine term=NONE cterm=NONE ctermfg=NONE ctermbg=233 highlight DiffAdd term=NONE cterm=NONE ctermfg=NONE ctermbg=22 highlight DiffChange term=NONE cterm=NONE ctermfg=NONE ctermbg=17 highlight DiffDelete term=NONE cterm=NONE ctermfg=NONE ctermbg=52 diff --git a/vimrc b/vimrc @@ -147,6 +147,9 @@ endif set nobackup set nowb set noswapfile + +" improve vim path +set path=.,,inc,src,/usr/include " }}} " > Text formatting =================================================== @@ -253,6 +256,11 @@ set pastetoggle=<F11> " easily change the working directory nnoremap <leader>cd :cd %:p:h<CR>:pwd<CR> +" open the file correcponding to the source/header actually openned. +" it replace .c with .h in the file name, eg. file.cpp -> file.hpp +" You must set your path correctly so that :find will find it. +nnoremap <leader>ss :find %:t:s,.c,.foo,:s,.h,.c,:s,.foo,.h,<CR> + " increment numbers in a column vnoremap <C-a> :call Incr()<CR> diff --git a/zshrc b/zshrc @@ -12,6 +12,9 @@ export MPD_HOST='mpdconf@gavroche' ## CONFIGURATION FILE FOR Z SHELL :: MAIN {{{ +# start X at login +[ -z $DISPLAY ] && startx + # enable zsh completion menu autoload -U compinit && compinit