From 8cfdd27674c7136382518080d442870e720388c4 Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Sat, 6 Aug 2016 10:16:10 -0400 Subject: [PATCH] Vim: Tweaks to vimrc (improved pasting! yay) --- vimrc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index 8ab6956..72aca40 100644 --- a/vimrc +++ b/vimrc @@ -393,12 +393,16 @@ map map m :vsplit map mm :split +" Delete a word forward and backward +map a daw +map d ciw + " Map paste and nonumber map p :set paste! paste? map o :set number! number? " Spell checking -map d :exec &spell==&spell? "se spell! spelllang=en_us" : "se spell!" +map j :exec &spell==&spell? "se spell! spelllang=en_us" : "se spell!" map = z= " Clear the search buffer (highlighting) when hitting return @@ -408,6 +412,9 @@ endfunction call MapCR() nnoremap +" Replace currently selected text with default register without yanking it +vnoremap p "_dP + """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " ABBREVIATIONS