Saluton Patrick :)

Patrick Gen-Paul  <[email protected]> skribis:
> Matt Wozniski wrote:
>> Are you aware of the 'listchars' option?  You might find that
>> displaying trailing spaces using a special character (which isn't
>> highlighted with the NonText group) suits your needs better than
>> displaying the $ (which is highlighted with the NonText group).
>
> Yes, I read about the listchars option several times and yet, I did
> not see anything that would help regarding this issue. This probably
> means that I missed something important. I will review in the morning
> and get back to you if I can't figure it out.

It's easy: you want to get rid of the "~" (just like me) but still be
aware of any trailing whitespace, right?

Then, set "NonText" to an invisible color and use "listchars" to see if
there are trailing whitespace at the end of lines when needed. I've set
a mapping to enable/disable listchars showing:

" Toggle visibility of special chars
nmap <silent> <Leader>+ :set invlist<CR>
imap <silent> <Leader>+ x<BS><C-\><C-O><Leader>+

Anyway, although I don't like the "~" at all, I've learnt to live with
them. When I started using Vim I patched the sources to use a space and
not a tilde, but it was not worth the maintenance effort when upgrading
Vim. Right now, I barely notice them at all. In fact, I thought I had
them highlighted in an invisible colour, but that's not true!

-- 
Raúl "DervishD" Núñez de Arenas Coronado
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to