-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Experiment with a focus mode based on cursorline #7
Comments
@mattly What do you think of colorscheme-scoped definitions of a 'focus mode'? The only base color I adjusted was medium_gray to reflect IA Writer's color for dimmed text. I see that the cursor fg needs tweaking, but otherwise it's pretty close. |
Hm. While I have limelight installed, I never use it. Unfortunately I also think this highlights (pun intended, sorry) a problem with vim: lack of first-class color support makes it unclear where something like this should reside. Plugins can't accurately predict how they'll behave across all color schemes, and ideally color schemes should be lookup tables that respond to a handful of toggles. I'll give it a shot over the weekend though, I have a piece I've been meaning to finish. |
Agreed that it's unclear where the responsibility should reside. Plugins that muddy the lines separating color/syntax/etc. always seem to make compromises that sacrifice some strength of Vim. My repurposing of cursorline skirts the edge of such compromise. Those toggles (notably Thanks for giving it a try. I'll be flipping between it and Limelight over the coming weeks to see if either is compelling. |
Initial thoughts:
|
|
There may be better ways to offer focus, such as that of http://github.com/junegunn/limelight.vim
This experiment takes a different colorscheme-scoped approach to selectively dim colors via the highlight generator
h()
.Attached is image showing with bg=light. To see the focus in action, check out the branch: https://github.com/reedes/vim-colors-pencil/tree/focus-support
and then run the command...
:ToggleFocus
The text was updated successfully, but these errors were encountered: