diff options
author | Adam Hovorka <[email protected]> | 2017-08-31 11:15:00 -0600 |
---|---|---|
committer | Adam Hovorka <[email protected]> | 2017-08-31 11:15:00 -0600 |
commit | cffa985bd635411fc19bfe138bcdc03a3840dc63 (patch) | |
tree | 7efd17b560162555eefa1089b0946d244441ade0 | |
parent | e69b853c9bc274f61bb2f58800612678fe287f9a (diff) |
Add pasting maps, change hexmode to capital "H"
-rw-r--r-- | base/.vimrc | 6 |
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) |