Sunday, July 10, 2022

Re: [SOLVED] better way to always highlight NS?

On Sun, Jul 10, 2022 at 08:22:33PM +0300, M wrote:
> вс, 10 июл. 2022 г. в 15:46, Anton Sharonov <anton.sharonov@gmail.com>:
>
> > Hi all,
> >
> > I am trying to always highlight non-breakable spaces in all my
> > buffers, regardless of the filetype.


> > PS: By the way, even ":set list" do not show them so those NS are
> > really nasty if you don't expect them )))
>
> Recent Vim has support for NBSP. like `:set list listchars=nbsp:?`

Hi Matvey,

Ah, that's nice! How could I forgot that everything can be
configured in Vim ))). Decided to go with "white square" instead
of plane "?" in my vimrc:

" show non-breakable spaces with white square (UTF16 0x25a1) when ":set list"
exec "set listchars=nbsp:\u25a1"

--
Anton

>
> Regards,
> Matvey
>
> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAFsTB%2BJ1O8Z4TrSAt9tRjyOhy-1C_xYOGEeQ%3DbT%2B4QGzepX1hQ%40mail.gmail.com.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/Yss9SzcCx9sk99VN%40DESKTOP-75K4M1M.

No comments: