I recently saw this demo. My question is: how is it possible in vim to show whitespace characters under the cursor as dots (in red for example).
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Highlight whitespace before and after the cursor
That works for normal mode with gvim. To make it work in terminal vim change the guibg to ctermbg. If you want it also in insert mode, change
au CursorMovedtoAlthough in that case you’d need to tweak the regex since that one matches erroneously non-whitespace characters to the right of the cursor when entering insert mode.
In the regex \%# matches the current cursor position. I had to use . after it since it wouldn’t match whitespace to the right of the cursor without it.