From cffa985bd635411fc19bfe138bcdc03a3840dc63 Mon Sep 17 00:00:00 2001 From: Adam Hovorka Date: Thu, 31 Aug 2017 11:15:00 -0600 Subject: Add pasting maps, change hexmode to capital "H" --- base/.vimrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'base/.vimrc') diff --git a/base/.vimrc b/base/.vimrc index 627d7b0..3a4b16a 100644 --- a/base/.vimrc +++ b/base/.vimrc @@ -142,6 +142,10 @@ nnoremap l :nohlsearch:diffupdate:syntax sync fromstart nnoremap [ :put! =repeat(nr2char(10), v:count1)'[ nnoremap ] :put =repeat(nr2char(10), v:count1) +noremap y "*y +noremap yy "*Y +noremap p :set paste:put *:set nopaste + noremap + :s/^\s*/&\/\//:noh noremap - :s/^\(\s*\)\/\//\1/:noh @@ -189,7 +193,7 @@ function! ToggleHex() endfunction command! -bar Hexmode call ToggleHex() -nnoremap h :Hexmode +nnoremap H :Hexmode function! NumberToggle() if(&relativenumber == 1) -- cgit v1.2.3-70-g09d2