0

Vim/Neovim allows us to use the command :TOhtml to create an html file of the buffer, which can then be opened in a browser, displaying an effigy of said buffer.

We can then use the Chrome dev tools to modify some colors of the Vim theme if we want to.

Now how do we generate a color scheme from the html file?

4
  • I understand that you would like to edit your Neovim/Vim colorscheme such that the html generated file match with the modified html generated file. Do I have the correct understanding? Commented Mar 1 at 1:37
  • Could you tell us the colirscheme your are using ( what is the result of the :colorscheme command?) Commented Mar 1 at 1:42
  • 2
    I think your problems starts with using "Chrome Dev Tools" to modify the colors of a auto generated file, that has no longer any connections to Vim. Use proper tools to tune your colorscheme. Commented Mar 1 at 16:49
  • I'm not familiar with Chrome Dev Tools. You might want to edit and show what it outputs. Making your question more specific with an example and your expectations would also make it easier to answer. Commented Mar 2 at 16:21

1 Answer 1

0

I understand that you would like to edit your Neovim/Vim colorscheme such that the html generated file match with the modified html generated file.

This is not possible in general. A Vim/Neovim is a VimScript or a Lua script that set a number of highlighting groups (use the :verbose hi to see the result of the script)

My advice would be to edit the code of the colorscheme and to report the changes you did in Chrome dev in the colorscheme script.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.