https://github.com/westurner/vim2vim
Utility for working with vim colorschemes
https://github.com/westurner/vim2vim
command-line-tool python-script vim vim-colorschemes
Last synced: about 1 year ago
JSON representation
Utility for working with vim colorschemes
- Host: GitHub
- URL: https://github.com/westurner/vim2vim
- Owner: westurner
- License: bsd-3-clause
- Created: 2013-11-26T14:51:03.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-03T19:08:50.000Z (almost 12 years ago)
- Last Synced: 2025-01-11T06:28:47.089Z (about 1 year ago)
- Topics: command-line-tool, python-script, vim, vim-colorschemes
- Language: Python
- Size: 164 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
===============================
vim2vim
===============================
.. .. image:: https://badge.fury.io/py/vim2vim.png
.. :target: http://badge.fury.io/py/vim2vim
..
.. .. image:: https://travis-ci.org/westurner/vim2vim.png?branch=master
.. :target: https://travis-ci.org/westurner/vim2vim
..
.. .. image:: https://pypip.in/d/vim2vim/badge.png
.. :target: https://crate.io/packages/vim2vim?version=latest
Utility for working with vim colorschemes.
* Free software: BSD license
* Documentation: https://github.com/westurner/vim2vim/blob/master/vim2vim/vim2vim.py
``vim2vim`` transforms output from ``:highlight``,
to a flat, plain ViM colorscheme.
Many ViM colorschemes and plugins utilize various functions for
configuring syntax highlighting. This utility works with ViM's
final, configured state.
Usage
------
1. (ViM) Write ``:highlight`` output to a file::
:redir > vim_highlight_output.txt
:highlight
:redir END
2. (vim2vim) Transform vim ``:highlight`` colors to vim color syntax::
python ./vim2vim/vim2vim.py ./vim_highlight_output.txt | sort > my_colorscheme.vim
vim2vim ./vim_highlight_output.txt | sort > my_colorscheme.vim
.. note:: Does not correctly tokenize multi-word font settings,
requiring manual removal of `font=multi word font` settings
from
for the time being. #TODO