Mercurial > dotfiles.old
changeset 32:2da8d8daa033
Add remaps to vim and aliases to zsh
author | zegervdv <zegervdv@me.com> |
---|---|
date | Fri, 04 Apr 2014 18:12:59 +0200 |
parents | faf7781dae42 |
children | 3bc2e4f5cc59 |
files | vimrc zshrc |
diffstat | 2 files changed, 19 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- 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 <SPACE> <C-e> +nnoremap <TAB> % +vnoremap <TAB> % +" Move between windows +nnoremap <C-l> <C-w><C-l> +nnoremap <C-h> <C-w><C-h> +nnoremap <C-j> <C-w><C-j> +nnoremap <C-k> <C-w><C-k> nnoremap <silent> n n:call HLNext(0.4)<cr> nnoremap <silent> N N:call HLNext(0.4)<cr> @@ -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 = '<c-p>' let g:ctrl_cmd = 'CtrlP' -map <C-l> :CtrlPBuffer<CR> -map <C-m> :CtrlPTag<CR> +map <C-m> :CtrlPBuffer<CR> +" map <C-m> :CtrlPTag<CR> if executable('ag') let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
--- 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 () {