How do I hide empyy lines in a Python file in Vim?
up vote
1
down vote
favorite
I have some empty lines showing as dark purple lines in my color theme in vim(Gvim). I would like to hide them for real. I use "set list" but that just replaces with some other characters. I just want to hide those lines, rather I want them to look like the rest of theme in the file, I find them distracting.
See the image for what is going on please.
I realize they are helpful but to me they are distracting. I might need to check out spaces here in the file and there but that is not something I want to see at all times.
I do not want to run some predefined commands to clear the white spaces if possible. I just want to do this on the syntax/session side.
vim python syntax-highlighting
add a comment |
up vote
1
down vote
favorite
I have some empty lines showing as dark purple lines in my color theme in vim(Gvim). I would like to hide them for real. I use "set list" but that just replaces with some other characters. I just want to hide those lines, rather I want them to look like the rest of theme in the file, I find them distracting.
See the image for what is going on please.
I realize they are helpful but to me they are distracting. I might need to check out spaces here in the file and there but that is not something I want to see at all times.
I do not want to run some predefined commands to clear the white spaces if possible. I just want to do this on the syntax/session side.
vim python syntax-highlighting
1
The dark boxes look like highlighting of trailing whitespace.
– Ingo Karkat
Nov 21 at 7:18
Yes they do like I mentioned in my post, and that is what I am trying to get rid of.
– yarun can
Nov 21 at 17:13
You need to find out which syntax group causes the highlighting.:syn list
shows all active groups, but it's easier when you install the SyntaxAttr.vim - Show syntax highlighting attributes of character under cursor plugin. (I maintain an extended fork.) When you have the name of the offending syntax group, you can investigate where it comes from. If you don't find a syntax group, check whether:call clearmatches()
removes the highlighting.
– Ingo Karkat
Nov 21 at 17:48
Thanks, I will take a look at your fork
– yarun can
Nov 21 at 20:14
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have some empty lines showing as dark purple lines in my color theme in vim(Gvim). I would like to hide them for real. I use "set list" but that just replaces with some other characters. I just want to hide those lines, rather I want them to look like the rest of theme in the file, I find them distracting.
See the image for what is going on please.
I realize they are helpful but to me they are distracting. I might need to check out spaces here in the file and there but that is not something I want to see at all times.
I do not want to run some predefined commands to clear the white spaces if possible. I just want to do this on the syntax/session side.
vim python syntax-highlighting
I have some empty lines showing as dark purple lines in my color theme in vim(Gvim). I would like to hide them for real. I use "set list" but that just replaces with some other characters. I just want to hide those lines, rather I want them to look like the rest of theme in the file, I find them distracting.
See the image for what is going on please.
I realize they are helpful but to me they are distracting. I might need to check out spaces here in the file and there but that is not something I want to see at all times.
I do not want to run some predefined commands to clear the white spaces if possible. I just want to do this on the syntax/session side.
vim python syntax-highlighting
vim python syntax-highlighting
edited Nov 21 at 6:35
asked Nov 21 at 6:21
yarun can
412625
412625
1
The dark boxes look like highlighting of trailing whitespace.
– Ingo Karkat
Nov 21 at 7:18
Yes they do like I mentioned in my post, and that is what I am trying to get rid of.
– yarun can
Nov 21 at 17:13
You need to find out which syntax group causes the highlighting.:syn list
shows all active groups, but it's easier when you install the SyntaxAttr.vim - Show syntax highlighting attributes of character under cursor plugin. (I maintain an extended fork.) When you have the name of the offending syntax group, you can investigate where it comes from. If you don't find a syntax group, check whether:call clearmatches()
removes the highlighting.
– Ingo Karkat
Nov 21 at 17:48
Thanks, I will take a look at your fork
– yarun can
Nov 21 at 20:14
add a comment |
1
The dark boxes look like highlighting of trailing whitespace.
– Ingo Karkat
Nov 21 at 7:18
Yes they do like I mentioned in my post, and that is what I am trying to get rid of.
– yarun can
Nov 21 at 17:13
You need to find out which syntax group causes the highlighting.:syn list
shows all active groups, but it's easier when you install the SyntaxAttr.vim - Show syntax highlighting attributes of character under cursor plugin. (I maintain an extended fork.) When you have the name of the offending syntax group, you can investigate where it comes from. If you don't find a syntax group, check whether:call clearmatches()
removes the highlighting.
– Ingo Karkat
Nov 21 at 17:48
Thanks, I will take a look at your fork
– yarun can
Nov 21 at 20:14
1
1
The dark boxes look like highlighting of trailing whitespace.
– Ingo Karkat
Nov 21 at 7:18
The dark boxes look like highlighting of trailing whitespace.
– Ingo Karkat
Nov 21 at 7:18
Yes they do like I mentioned in my post, and that is what I am trying to get rid of.
– yarun can
Nov 21 at 17:13
Yes they do like I mentioned in my post, and that is what I am trying to get rid of.
– yarun can
Nov 21 at 17:13
You need to find out which syntax group causes the highlighting.
:syn list
shows all active groups, but it's easier when you install the SyntaxAttr.vim - Show syntax highlighting attributes of character under cursor plugin. (I maintain an extended fork.) When you have the name of the offending syntax group, you can investigate where it comes from. If you don't find a syntax group, check whether :call clearmatches()
removes the highlighting.– Ingo Karkat
Nov 21 at 17:48
You need to find out which syntax group causes the highlighting.
:syn list
shows all active groups, but it's easier when you install the SyntaxAttr.vim - Show syntax highlighting attributes of character under cursor plugin. (I maintain an extended fork.) When you have the name of the offending syntax group, you can investigate where it comes from. If you don't find a syntax group, check whether :call clearmatches()
removes the highlighting.– Ingo Karkat
Nov 21 at 17:48
Thanks, I will take a look at your fork
– yarun can
Nov 21 at 20:14
Thanks, I will take a look at your fork
– yarun can
Nov 21 at 20:14
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1377182%2fhow-do-i-hide-empyy-lines-in-a-python-file-in-vim%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
The dark boxes look like highlighting of trailing whitespace.
– Ingo Karkat
Nov 21 at 7:18
Yes they do like I mentioned in my post, and that is what I am trying to get rid of.
– yarun can
Nov 21 at 17:13
You need to find out which syntax group causes the highlighting.
:syn list
shows all active groups, but it's easier when you install the SyntaxAttr.vim - Show syntax highlighting attributes of character under cursor plugin. (I maintain an extended fork.) When you have the name of the offending syntax group, you can investigate where it comes from. If you don't find a syntax group, check whether:call clearmatches()
removes the highlighting.– Ingo Karkat
Nov 21 at 17:48
Thanks, I will take a look at your fork
– yarun can
Nov 21 at 20:14