# HG changeset patch # User zegervdv # Date 1396627979 -7200 # Node ID 2da8d8daa033a8ae3f32d75148165782cb8046e7 # Parent faf7781dae423719e84403be812cf480d15ad8cb Add remaps to vim and aliases to zsh diff -r faf7781dae42 -r 2da8d8daa033 vimrc --- a/vimrc Tue Apr 01 20:56:02 2014 +0200 +++ b/vimrc Fri Apr 04 18:12:59 2014 +0200 @@ -40,6 +40,7 @@ set hlsearch set incsearch set ignorecase +set gdefault set smartcase set smartindent set autoindent @@ -73,7 +74,11 @@ set clipboard=unnamed +set undofile set viminfo='10,\"100,:20,%,n~/.viminfo + +" set list +" set listchars=tab:▸\ ,eol:¬ " }}} " Custom remaps and tricks {{{ " When editing a file, always jump to the last known cursor position. @@ -106,11 +111,16 @@ nmap / /\v cmap s/ s/\v - inoremap £ \ -" nnoremap +nnoremap % +vnoremap % +" Move between windows +nnoremap +nnoremap +nnoremap +nnoremap nnoremap n n:call HLNext(0.4) nnoremap N N:call HLNext(0.4) @@ -155,10 +165,6 @@ highlight IndentGuidesEven guibg=background highlight IndentGuidesOdd guibg='#282a2e' -" Show trailing whitespaces -" exec "set listchars=tab:\uBB\uBB,trail:\uB7,nbsp:~" -" set list - " }}} " Plugin Settings {{{ " Vim Math plugin; make simple calculations @@ -215,8 +221,8 @@ let g:ctrl_map = '' let g:ctrl_cmd = 'CtrlP' -map :CtrlPBuffer -map :CtrlPTag +map :CtrlPBuffer +" map :CtrlPTag if executable('ag') let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""' diff -r faf7781dae42 -r 2da8d8daa033 zshrc --- a/zshrc Tue Apr 01 20:56:02 2014 +0200 +++ b/zshrc Fri Apr 04 18:12:59 2014 +0200 @@ -7,6 +7,8 @@ # time that oh-my-zsh is loaded. ZSH_THEME="custom" +setopt correct_all + # Example aliases # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" @@ -32,7 +34,7 @@ # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) -plugins=(git z textmate sublime ruby history-substring-search brew gitfast osx terminalapp vagrant web-search gitignore) +plugins=(git z textmate sublime ruby history-substring-search brew gitfast osx terminalapp vagrant web-search gitignore brew-cask rake-fast) source $ZSH/oh-my-zsh.sh @@ -66,6 +68,8 @@ alias grep="grep --color=auto" alias beer="bundle exec rake" alias ll="ls -al" +alias l="ls -l" +alias gsl="git sl" # Functions gcat () {