Mercurial > dotfiles.old
diff vimrc @ 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 | 599325301323 |
children | 3bc2e4f5cc59 |
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 ""'