Re: Dump colorscheme
Efraim Yawitz 写道: On Tue, Aug 25, 2009 at 1:19 PM, Tinou tinou...@gmail.com wrote: :redir = current_highlighting :hi :redir END and then manipulating current_highlighting and saving it to a file. Ah, perfect, just what I needed. Thanks. But don't forget the 'manipulating'; the output of :hi is not quite ready for executing (for one thing, it has all those xxx's in it). The output isn't quite useful, because most :hi group has a default value. Sadly you must write a script to do that, you need to reset everything to NONE before apply the new value. an example: if the default value is :hi AAA guifg=bbb guibg=ccc and the current value is :hi AAA guifg=bbb guibg=NONE redir and you will get :hi AAA guifg=bbb as the output, however, execute the output in a new session will give you :hi AAA guifg=bbb guibg=ccc since the default value of guibg is there. another example: if the default value is :hi AAA gui=reverse and the current value is :hi AAA gui=bold redir and you will get :hi AAA gui=bold as the output, however, execute the output in a new session will give you :hi AAA gui=bold,reverse since the default value is there. Rationale: :hi clear does not clear all colors, it reset all colors to default, the redir output cannot be used as an addition to default color, it can only be applied to really empty color. --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Dump colorscheme
Hello, Is it possible to dump the current resulting colorscheme? (highlights set in different places I wish to gather). -- Étienne --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: Dump colorscheme
On Tue, Aug 25, 2009 at 12:49 PM, Boyko Bantchev boyk...@gmail.com wrote: 2009/8/25 Tinou tinou...@gmail.com: Hello, Is it possible to dump the current resulting colorscheme? (highlights set in different places I wish to gather). ... :hi For other options, do :he hi I think what he wants to do is to save the current scheme so that he can use it again later, i.e., as a colorscheme file. What he needs is something like mksession. It probably could be done with: :redir = current_highlighting :hi :redir END and then manipulating current_highlighting and saving it to a file. Ephraim --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: Dump colorscheme
:redir = current_highlighting :hi :redir END and then manipulating current_highlighting and saving it to a file. Ah, perfect, just what I needed. Thanks. -- Étienne --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: Dump colorscheme
On Tue, Aug 25, 2009 at 1:19 PM, Tinou tinou...@gmail.com wrote: :redir = current_highlighting :hi :redir END and then manipulating current_highlighting and saving it to a file. Ah, perfect, just what I needed. Thanks. But don't forget the 'manipulating'; the output of :hi is not quite ready for executing (for one thing, it has all those xxx's in it). --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---
Re: Dump colorscheme
Tinou wrote: Hello, Is it possible to dump the current resulting colorscheme? (highlights set in different places I wish to gather). Check out hicolors -- http://mysite.verizon.net/astronaut/vim/index.html#HICOLORS (cutting edge) http://vim.sourceforge.net/scripts/script.php?script_id=1081 (stable) It gives help for highlighting colors by showing the name of the highlight in its currently selected color. Left-clicking on that color name will bring you to the help for it, and right-clicking on it will bring up a color editor. You can save the colorscheme, of course, without having made any changes. Regards, Chip Campbell --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---