Convert bidding topics to gvim colorscheme

Are there any tools to convert pigment style definitions to gvim color scheme?

I found vim2pygments which converts vim colorschemes to pygments themes, but I did not find anything doing the inverse. In particular, I use macvim, although I assume that the colorscheme format will be the same for any gvim derivative (please correct me if I am wrong).

+3
source share
1 answer

I have not come across anything that automates this process, but it should be very easy to do manually. Take the existing color scheme, paste it into your catalog ~/.vim/colors/and place the colors that are defined in the pigment scheme in the appropriate places.

For example, if you use my color scheme (which uses a custom format to make it more editable) and force it to use the pigment autumn scheme , you can take a line that looks like this:

let ColourAssignment['Function'] = {"GUIFG": '#007777', "CTERMFG": 'Cyan'}

and change it like this:

let ColourAssignment['Function'] = {"GUIFG": '#00aa00'}

(I removed the assignment of color terminals, since you said you were using a graphical interface, and that pretty much doesn't matter).

. ( , ), : "" , s:MakeDarker if &background == 'light'.

, (,) darkblue.vim ():

hi ErrorMsg     guifg=#ffffff guibg=#287eff                     ctermfg=white ctermbg=lightblue

:

hi ErrorMsg     guifg=#aa0000 guibg=#ffffff                     ctermfg=white ctermbg=lightblue
+1

Source: https://habr.com/ru/post/1791165/


All Articles