Friday, December 27, 2013

Re: specific colorscheme for help files

On Friday, December 27, 2013 3:25:24 AM UTC-6, Steve wrote:
> > You could possibly hack a tab-local color scheme using
>
> > TabEnter/TabLeave autocmds, but there's nothing built in even for
>
> > that.
>
>
>
> Would this be complicated to do?
>
>
>
> Thank you for your answer

Not complicated. I just whipped this up, it will automatically remember per-tab any colorscheme you set. So just manually set whatever colorscheme on whatever tab you want and it should work. Adjust for your own needs:

autocmd ColorScheme * let t:colors_name = g:colors_name
autocmd TabEnter * if exists('t:colors_name') && g:colors_name !=# t:colors_name | exec 'colorscheme' t:colors_name | endif
autocmd TabEnter * if !exists('t:colors_name') | let t:colors_name = g:colors_name | endif

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: