vi 16进制切换 vimrc配置

"To hex modle
let s:hexModle = "N"
function! ToHexModle()
  if s:hexModle == "Y"
    %!xxd -r
    let s:hexModle = "N"
  else
    %!xxd
    let s:hexModle = "Y"
  endif
endfunction

nmap <C-h> :call ToHexModle()<cr>


你可能感兴趣的:(vi 16进制切换 vimrc配置)