From 5e692e9e118face7de228026c68b8580f184ead1 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Fri, 1 May 2015 10:12:55 +0100 Subject: Cleaned Leader maps --- vimrc | 41 ++++++++++++++++++++++++++++------------- 1 file changed, 28 insertions(+), 13 deletions(-) diff --git a/vimrc b/vimrc index f14d3c8..f434f28 100644 --- a/vimrc +++ b/vimrc @@ -7,6 +7,7 @@ call vundle#rc() Plugin 'gmarik/vundle' Plugin 'LaTeX-Box-Team/latex-box' Plugin 'SirVer/ultisnips' +Plugin 'airblade/vim-gitgutter' Plugin 'altercation/vim-colors-solarized' Plugin 'bling/vim-airline' Plugin 'christoomey/vim-tmux-navigator' @@ -19,6 +20,7 @@ Plugin 'scrooloose/nerdtree' Plugin 'scrooloose/syntastic' Plugin 'sjl/Gundo.vim' Plugin 'tommcdo/vim-exchange' +Plugin 'tpope/vim-abolish' Plugin 'tpope/vim-commentary' Plugin 'tpope/vim-fugitive' Plugin 'tpope/vim-obsession' @@ -88,11 +90,6 @@ let g:tmuxline_theme='airline' " let g:ycm_key_list_select_completion=[] " let g:ycm_key_list_previous_completion=[] -" Gundo -nnoremap :GundoToggle - -" Nerdtree -nnoremap :NERDTreeToggle let NERDTreeIgnore=['\.pdf$', '\~$','\.toc$', \ '\.fls$','\.bbl$','\.blg$', \ '\.out$', '\.log$','\.aux$','\.sty$', @@ -158,17 +155,35 @@ set clipboard=unnamedplus " Leader-maps -nnoremap te :tabedit -nnoremap tn :tabnew -nnoremap to :tabonly -nnoremap w :w -nnoremap q :q! -nnoremap h :set hlsearch! -nnoremap n :set relativenumber! -nnoremap sp :set paste! + +" Tabs +nnoremap we :tabedit +nnoremap wn :tabnew +nnoremap wo :tabonly + +" Toggles +nnoremap th :set hlsearch! +nnoremap tr :set relativenumber! +nnoremap tn :set number! +nnoremap tp :set paste! +nnoremap tb :set bg! +nnoremap tg :GitGutterToggle +nnoremap tt :NERDTreeToggle +nnoremap tu :GundoToggle +nnoremap tb :ToggleBG + +" Sourcing nnoremap sv :source ~/.vimrc nnoremap sc :source % + +" File edits nnoremap es :UltiSnipsEdit +nnoremap ev :e ~/.vimrc +nnoremap ez :e ~/.zshrc + +" Misc +nnoremap w :w +nnoremap q :q! nnoremap i mxgg=G'x nnoremap sw :%s/\s\+$// nnoremap -- cgit v1.2.3