summaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-10-15 15:20:58 -0400
committerJesse Luehrs <doy@tozt.net>2014-10-15 15:21:10 -0400
commit9def2fc3ac3669383d6db7c82f0308be2cea9916 (patch)
tree7de39bfd4a200b58425555d60fa3aee72f0e9f57 /vimrc
parenta37acd49513bc6403555db8fda71740e14e5b225 (diff)
downloadconf-9def2fc3ac3669383d6db7c82f0308be2cea9916.tar.gz
conf-9def2fc3ac3669383d6db7c82f0308be2cea9916.zip
helpers for editing binary files in vim
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 6ef469b..ecc4445 100644
--- a/vimrc
+++ b/vimrc
@@ -590,6 +590,10 @@ nnoremap <silent>;A :call <SID>temporary_paste()<CR>A
nnoremap <silent>;o :call <SID>temporary_paste()<CR>o
nnoremap <silent>;O :call <SID>temporary_paste()<CR>O
" }}}
+" editing binary files {{{
+nnoremap <C-B> :%!xxd<CR>
+nnoremap <C-R> :%!xxd -r<CR>
+" }}}
" keystroke reducers {{{
" tags
nnoremap <CR> <C-]>