" Add this to your ~/.vimrc " then in command mode press space to toggle ascii show :) if $ASCIISHOW == -1 let $ASCIISHOW = 0 endif function ChangeAsciiShow() if $ASCIISHOW == 0 let $ASCIISHOW = 1 echo 'Mess.age: Showing ascii and hex of the char under cursor' map ga map ga map ga map ga else let $ASCIISHOW = 0 echo 'Mess.age: NOT Showing ascii and hex of the char under cursor' unmap unmap unmap unmap endif endfunction nmap :call ChangeAsciiShow()