Skip to content

Commit

Permalink
New: Add Vim sh key mapping to show hex dump
Browse files Browse the repository at this point in the history
  • Loading branch information
alrra committed Sep 22, 2018
1 parent 4ad4bce commit 9ff4eea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,12 @@ nmap <leader>n :call ToggleRelativeLineNumbers()<CR>
" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

" [,sh] Show hex dump.

nmap <leader>sh :%!xxd<CR>
" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

" [,sr] Strip carriage returns.

nmap <leader>sr :%s/\r//g<CR>
Expand Down

0 comments on commit 9ff4eea

Please sign in to comment.