Skip to content
This repository has been archived by the owner on Jul 29, 2023. It is now read-only.

Leading spaces sometimes shown with g:indentLine_enabled = 0 #179

Closed
yyny opened this issue Dec 1, 2016 · 6 comments · May be fixed by #199
Closed

Leading spaces sometimes shown with g:indentLine_enabled = 0 #179

yyny opened this issue Dec 1, 2016 · 6 comments · May be fixed by #199

Comments

@yyny
Copy link

yyny commented Dec 1, 2016

For example, when alt-tabbing or resizing the terminal, the leading spaces appear, even with indentLine_enabled = 0. Pretty sure this is caused by indentLine, as LeadingSpacesDisable removes the leading spaces again.

@Yggdroot
Copy link
Owner

It is g:indentLine_leadingSpaceEnabled not indentLine_enabled that can control the leading spaces.

@yyny
Copy link
Author

yyny commented Apr 26, 2017

But isn't g:indentLine_enabled = 0 supposed to disable the plugin completely? As of right now, I'm having to disable it in Vundle.

@Yggdroot
Copy link
Owner

If you want to disable the plugin, use let g:indentLine_loaded = 1 instead.

yyny added a commit to yyny/indentLine that referenced this issue Apr 30, 2017
@yyny
Copy link
Author

yyny commented Apr 30, 2017

So the readme is wrong, then? (See pull request)

@Yggdroot
Copy link
Owner

Readme is not wrong. let g:indentLine_loaded = 1 is do not use the plugin. let g:indentLine_enabled = 0 is do not show the line by default.

yyny added a commit to yyny/indentLine that referenced this issue May 4, 2017
Again in accordance with Yggdroot#179
@yyny
Copy link
Author

yyny commented May 4, 2017

We might be talking about the same problem as at #193 here.

README might not be wrong, but it is confusing at best (See pull request)

I'm not sure if there's a way to stop indentLine from showing leading spaces after resizing etc. besides forcefully disabling it, but the current behaviour is definitely unexpected, and this severely limits the usability of g:indentLine_enabled = 0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants