Skip to content
This repository has been archived by the owner on Dec 28, 2019. It is now read-only.

Ruler settings interact badly #3

Open
dgl opened this issue Oct 8, 2011 · 5 comments
Open

Ruler settings interact badly #3

dgl opened this issue Oct 8, 2011 · 5 comments

Comments

@dgl
Copy link

dgl commented Oct 8, 2011

I have something like:

set t_mr=^[[0;1;37;44m
set ruler

in my .vimrc to show a coloured ruler, this doesn't make much sense with this. If I manually :set noruler t_mr= and do a ^L after entering this it works.

[I'm http://news.ycombinator.com/item?id=3088408]

@mikewest
Copy link
Owner

mikewest commented Oct 8, 2011

Ok. Let me just look up what t_mr does, and I'll see what I can do. :)

It should be possible to save it off to a temp variable and replace it after toggling Vimroom. Trying that out now. Thanks for the bug report!

@mikewest
Copy link
Owner

mikewest commented Oct 8, 2011

Can you pull the current master branch and let me know if the quick fix actually takes care of the bug?

Thanks!

@dgl
Copy link
Author

dgl commented Oct 8, 2011

Yes, that seems to work to hide the not active parts so it looks much better.

I realised I also have a :set highlight=[...,]sr[,...] type thing in my .vimrc which is probably what is making t_mr do that to start with, sorry for simplifying too much...

@mikewest
Copy link
Owner

mikewest commented Oct 9, 2011

So the patch fixes the bug for you? Or is there still something in your highlight string that Vimroom is having issues with?

@dgl
Copy link
Author

dgl commented Oct 10, 2011

It still shows the filename at the bottom, but it's cleaner.

I think this should reproduce what I see:
vim -u /dev/null --cmd 'set highlight=sr' -c VimroomToggle

I think ideally 'sr' should be filtered out of highlight, then the need for the t_mr saving I originally suggested should go away.

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

No branches or pull requests

2 participants