How to get Vim to highlight non-ascii characters?

前端 未结 8 1135
萌比男神i
萌比男神i 2020-11-29 15:14

I\'m trying to get Vim to highlight non-ASCII characters. Is there an available setting, regex search pattern, or plugin to do so?

8条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-29 15:47

    Somehow none of the above answers worked for me.

    So I used :1,$ s/[^0-9a-zA-Z,-_\.]//g

    It keeps most of the characters I am interested in.

提交回复
热议问题