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.



spaces










share|improve this question




















  • 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















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.



spaces










share|improve this question




















  • 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













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.



spaces










share|improve this question















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.



spaces







vim python syntax-highlighting






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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














  • 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















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















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






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














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





















































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







Popular posts from this blog

If I really need a card on my start hand, how many mulligans make sense? [duplicate]

Alcedinidae

Can an atomic nucleus contain both particles and antiparticles? [duplicate]