aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorAdam Hovorka <[email protected]>2017-08-31 11:15:00 -0600
committerAdam Hovorka <[email protected]>2017-08-31 11:15:00 -0600
commitcffa985bd635411fc19bfe138bcdc03a3840dc63 (patch)
tree7efd17b560162555eefa1089b0946d244441ade0 /base
parente69b853c9bc274f61bb2f58800612678fe287f9a (diff)
Add pasting maps, change hexmode to capital "H"
Diffstat (limited to 'base')
-rw-r--r--base/.vimrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/base/.vimrc b/base/.vimrc
index 627d7b0..3a4b16a 100644
--- a/base/.vimrc
+++ b/base/.vimrc
@@ -142,6 +142,10 @@ nnoremap <leader>l :nohlsearch<cr>:diffupdate<cr>:syntax sync fromstart<cr><c-l>
nnoremap [<space> :<c-u>put! =repeat(nr2char(10), v:count1)<cr>'[
nnoremap ]<space> :<c-u>put =repeat(nr2char(10), v:count1)<cr>
+noremap <leader>y "*y
+noremap <leader>yy "*Y
+noremap <leader>p :set paste<CR>:put *<CR>:set nopaste<CR>
+
noremap <silent> + :s/^\s*/&\/\//<CR>:noh<CR>
noremap <silent> - :s/^\(\s*\)\/\//\1/<CR>:noh<CR>
@@ -189,7 +193,7 @@ function! ToggleHex()
endfunction
command! -bar Hexmode call ToggleHex()
-nnoremap <leader>h :Hexmode<CR>
+nnoremap <leader>H :Hexmode<CR>
function! NumberToggle()
if(&relativenumber == 1)