Spacevim: Option to make all trailing whitespace visible by default?

Created on 11 Jan 2018  ·  8Comments  ·  Source: SpaceVim/SpaceVim

You can use spc-t-w to toggle trailing whitespace visibility. I want this visibility enabled by default for all buffers without the need to explicitly enable it. I cannot find the option which does that.

I notice vim-better-whitespace is bundled yet whitespace is not visible on by default. I attempted the following setting in my init.vim:

let g:better_whitespace_enabled = 1

but this has no effect. On a bare-bones installation of vim the better-whitespace plugin does display trailing whitespace by default. I am left wondering if some other plugin is conflicting? I have tried multiple file types.

Environment Information

  • OS: windows
  • vim version: 8
  • non-customized version of spacevim

Most helpful comment

and key binding SPC x d w is for delete whitespace.

All 8 comments

enable this will make Vim slow, so this should not be default option.

I'm not requesting a default option, I'm only asking for the option to
exist. Disabled by default is understandable.

Some of us have used vim-better-whitespace for years where this is visible
by default. This could be controlled via a g: setting in
~/Spacevim.d/init.vim. Speaking for myself I'd be more than happy to pay
the performance cost if the option existed I would enable it.

On 14 January 2018 at 20:37, Wang Shidong notifications@github.com wrote:

enable this will make Vim slow, so this should not be default option.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/SpaceVim/SpaceVim/issues/1266#issuecomment-357562032,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACUWyFPhjuzImX-PcL8hC_LaPb1hz5hwks5tKqu8gaJpZM4RbX-F
.

--
Peter Weissbrod
http://RealLifeData.com | O: 207.439.3489 | M: 406.531.1263

OK, I will add it。

THANK YOU!!

On 15 January 2018 at 17:01, Wang Shidong notifications@github.com wrote:

OK, I will add it。


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/SpaceVim/SpaceVim/issues/1266#issuecomment-357798833,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACUWyD-eoueobdPppObsxegN37hzy0Hyks5tK8rGgaJpZM4RbX-F
.

--
Peter Weissbrod
http://RealLifeData.com | O: 207.439.3489 | M: 406.531.1263

@PeteW I have fixed this issue, and if you want to enable whitespace section by default, just need to add this to SpaceVim configration file :

call add(g:spacevim_statusline_right_sections, 'whitespace')

and key binding SPC x d w is for delete whitespace.

@PeteW I have fixed this issue, and if you want to enable whitespace section by default, just need to add this to SpaceVim configration file :

call add(g:spacevim_statusline_right_sections, 'whitespace')

What configuration? I added this directly to ~/.SpaceVim.d/init.toml and then I get an error every time I open any file

in old version of spacevim. we use Vim script to config. now it is toml file.


wsdjeg

-------- 原始邮件 --------
主题:Re: [SpaceVim/SpaceVim] Option to make all trailing whitespace visible by default? (#1266)
发件人:Anthony Carathimas
收件人:SpaceVim/SpaceVim
抄送:Wang Shidong ,State change

@PeteWhttps://github.com/PeteW I have fixed this issue, and if you want to enable whitespace section by default, just need to add this to SpaceVim configration file :

call add(g:spacevim_statusline_right_sections, 'whitespace')

What configuration? I added this directly to ~/.SpaceVim.d/init.toml and then I get an error every time I open any file


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHubhttps://github.com/SpaceVim/SpaceVim/issues/1266?email_source=notifications&email_token=ADEITESBVKPQDBMJDDHJSVLP5TMTZA5CNFSM4ELNP6C2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZFDJAA#issuecomment-508179584, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADEITERDHQA2DYV6VUCCYKTP5TMTZANCNFSM4ELNP6CQ.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zeroasterisk picture zeroasterisk  ·  5Comments

keai4le picture keai4le  ·  4Comments

linwaytin picture linwaytin  ·  4Comments

zeroasterisk picture zeroasterisk  ·  4Comments

dzintars picture dzintars  ·  3Comments