From 48f7264133a2d0acfe4cc257dfec7a763640ceeb Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Sat, 4 May 2024 19:26:11 -0700 Subject: nvim add hexmode plugin and related configs --- home/xyz/.config/nvim/init.vim | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'home/xyz/.config/nvim/init.vim') diff --git a/home/xyz/.config/nvim/init.vim b/home/xyz/.config/nvim/init.vim index d6d4aa87..ee5ed005 100644 --- a/home/xyz/.config/nvim/init.vim +++ b/home/xyz/.config/nvim/init.vim @@ -24,6 +24,8 @@ Plug 'tpope/vim-markdown' Plug 'rlue/vim-barbaric' " alternatives: 'thinca/vim-ref' with 'eiiches/vim-ref-info', 'HiPhish/info.vim', 'alx741/vinfo' Plug 'https://gitlab.com/HiPhish/info.vim.git' +" :h hexmode +Plug 'fidian/hexmode' call plug#end() " next line must put below `Plug 'glacambre/firenvim'`, else if click github issue textarea, then click elsewhere, then click textarea, textarea will not be selected (no cursor in it), not sure why @@ -96,6 +98,12 @@ augroup END let g:markdown_minlines = 350 "let g:markdown_fenced_languages = ['python', 'sh', 'vim', 'c', 'cpp'] +" :h hexmode, fidian/hexmode plugin +" imagemagick .gray file format +let g:hexmode_patterns = '*.gray' +map h :Hexmode +"let g:hexmode_xxd_options = '-c 32' + " netrw-p preview vertial split let g:netrw_preview = 1 let g:netrw_winsize = 20 -- cgit v1.2.3-70-g09d2