From 1050c4dd7b3330eb565fec0a4a7ab1ba1be23ab9 Mon Sep 17 00:00:00 2001 From: Meutel Date: Thu, 28 Apr 2016 17:56:59 +0200 Subject: [PATCH] vim: Handy shortcuts --- _vimrc | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/_vimrc b/_vimrc index 8803708..c2e87e7 100644 --- a/_vimrc +++ b/_vimrc @@ -81,7 +81,7 @@ filetype plugin indent on " remap inoremap jk " leader key -let mapleader = " " +let mapleader = "\" " modeline set modeline @@ -92,9 +92,30 @@ set shiftwidth=2 " {{{ Shortcuts " clear search -nnoremap l :nohl +nnoremap l :nohl +" NERdTree +nnoremap o :NERDTree +" save +nnoremap w :w +" copy/paste system clipboard +vmap y "+y +vmap d "+d +nmap p "+p +nmap P "+P +vmap p "+p +vmap P "+P +" enter visual mode +nmap V +" Automatically jump to end of text you pasted +vnoremap y y`] +vnoremap p p`] +nnoremap p p`] " }}} + +" Stop that stupid window from popping up +map q: :q + " {{{ Vundle " All of your Plugins must be added before the following line call vundle#end() " required