syntax highlighting - Converting pygments theme to gvim colorscheme -


are there tools convert pygments style definition gvim colorscheme?

i found vim2pygments, converts vim colorschemes pygments themes, haven't found doing inverse. specifically, i'm using macvim, though imagine colorscheme format same gvim-derivative (please, correct me if i'm wrong).

i haven't come across automate process, should easy hand. grab existing colour scheme, stick in ~/.vim/colors/ directory , put colours defined in pygments scheme appropriate places.

for example, if use my colour scheme (which uses non-standard format make more editable) , make uses pygments autumn scheme, take line looks this:

let colourassignment['function'] = {"guifg": '#007777', "ctermfg": 'cyan'} 

and change this:

let colourassignment['function'] = {"guifg": '#00aa00'} 

(i've removed colour terminal assignment you've said you're using gui , largely irrelevant).

it shouldn't take long go through whole set. colour scheme designed dark backgrounds (it adjusts colours if switch light background), wouldn't hard rid of aspect: change "normal" highlighting black on white rather white on black , remove s:makedarker function , bit in if &background == 'light' block.

alternatively, similar thing normal syntax highlighting format taking (e.g.) darkblue.vim , changing (e.g.):

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

and changing to:

hi errormsg     guifg=#aa0000 guibg=#ffffff                     ctermfg=white ctermbg=lightblue 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -