Github GitHub - jeffkreeftmeijer/vim-dim: Dim (/dɪm/; a contraction of Default I...
source link: https://github.com/jeffkreeftmeijer/vim-dim
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Dim (/dɪm/; a contraction of Default IMproved) is a clone of Vim’s default colorscheme, with some improvements:
- It only uses ANSI colors, so you can assign colors in your terminal emulator yourself
- Syntax highlighting is consistent on light and dark backgrounds
Dim comes with Grim: a monochrome version that limits syntax coloring to grayscales.
Installation
git clone --branch 1.x [email protected]:jeffkreeftmeijer/vim-dim.git ~/.vim/pack/plugins/start/vim-dim
After installing, set your :colorscheme
to dim
or grim
.
" ~/.vimrc
colorscheme dim
Pessimistic versioning branches
Dim adheres to semantic versioning, meaning it'll try to keep backwards compatibility in minor and patch releases. In short:
- A breaking change will bump the major version number (1.0.0 -> 2.0.0)
- An added feature will bump the minor version number (1.0.0 -> 1.1.0)
- A bug fix will bump the patch version number (1.0.0 -> 1.0.1)
Since Vim's plugin manager doesn't allow specifying version ranges, Dim provides "pessimistic versioning branches" itself to allow users to lock to a specific version range:
- The branch named
1.x
is updated for every released version in the 1.x range (~> 1.0
or>= 1.0.0 and < 2.0.0
) - The branch named
1.1
is updated for every released version in the 1.1.x range (~> 1.1.0
or>= 1.1.0 and < 1.2.0
)
To install the latest version in the 1.x range, clone Dim's 1.x
branch:
git clone --branch 1.x [email protected]:jeffkreeftmeijer/vim-dim.git ~/.vim/pack/plugins/start/vim-dim
When updating through git pull
later, Dim will be updated to any new version,
but not to 2.x.
Comparison
colorscheme default
colorscheme dim
wwdc16.terminal
Dimmed comments, line numbers, folds, color columns and completion menus.
Inverted selections
Clear diff coloring
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK