4 ms·
Just an aside: is there a vim syntax command to highlight weird unicode whitespace as an error? Something like: syn match unicodeWhitespace /[list of
by chjj 3y ago
Just an aside: is there a vim syntax command to highlight weird unicode whitespace as an error?
Something like:
syn match unicodeWhitespace /[list of unicode whitespace]/
hi def link unicodeWhitespace Error
- a_e_k 3y agoI wouldn't know about the Vim equivalent, but I wrote this in my Emacs config long ago: (defun find-non-ascii () "Find and show all of the non-ascii characters." (interactive) (occur "[[:nonascii:]]")) It has proved quite useful on occasion. (Yes, I could just invoke Occur directly, but I can never quite remember the regexp character class and syntax here.)
- chjj 3y agoNo worries. I managed to whip something up: autocmd BufWinEnter * match ErrorMsg /[\xa0\u1680\u2000-\u200a\u202f\u205f\u3000]/
- xigoi 3y agoFor non-breaking spaces specifically, there is :help 'list'.