After fighting against word processor quotes, it's become second nature to double check it periodically.
It protects you from these tricks by highlighting "troll" unicode characters in red.
:syn match Error "[^ -~]"
:set statusline=%F%m%r%h%w\ [TYPE=%Y]\ [ASCII=\%03.3b]\ [HEX=\%02.2B]\ [POS=%04l,%04v][%p%%]\ [LEN=%L] :set laststatus=2
~/.vimrc [TYPE=VIM] [ASCII=109] [HEX=6D] [POS=0123,0020][67%] [LEN=182] -- INSERT --recording
[ASCII=2>4] [HEX=0>4]
It also says "ASCII=252" when I put the cursor over "ü". Claiming that values over 127 are ASCII is just a malapropism.
For us emacsen you can do a (what-cursor-position &optional DETAIL) which is usually bound to Ctl-x =
I don't think it will be nearly this clean to add it to the modeline, but I'll take a look.
After fighting against word processor quotes, it's become second nature to double check it periodically.