|
|
||
|---|---|---|
| vim | init | |
| README.md | blah. | |
| vimrc.png | add screenshot | |
vimrc-minimal
A (very) minimalistic Vim configuration with a handcrafted statusline and a collection of dark color schemes. No plugin managers, no bloat - just a single vimrc and four color schemes ready to drop in and go.
Please note: on this screenshot here, you see an interesting bug, that I hope is fixed now, and which only ever happened on iTerm2 on macOS: in the mode display on the very left of the status bar, you see 2 spaces left of the mode, e.g. "spacespaceINSERTspace". I'm still not exactly sure why this happens and I've made a workaround to circumvent this happening on iTerm2. If you ever run into problems with this, don't hesitate to contact me.
Quick Start
# Clone the repo
git clone https://codeberg.org/armin/vimrc-minimal ~/.vim
# Or just grab the bits you need:
cp vim/vimrc ~/.vimrc
cp -r vim/colors ~/.vim/colors
Structure hint: Run
find . | lessin~/.vimto browse the file tree.
Features
- Custom statusline - mode-aware highlighting (NORMAL, INSERT, VISUAL, etc.), filename, filetype, modified flag, mixed tabs warning, file encoding, line/column position
- Sensible defaults - 2-space indentation, dark background, syntax highlighting, line numbers, incremental search with highlighting, wildmenu with popup completion, no toolbar/startup message
- Dark color schemes - 4 hand-picked or custom schemes
- Cursor jump - restores cursor position when reopening files (
BufReadPost)
Color Schemes
| Scheme | Description | Background |
|---|---|---|
bvemu |
Earthy greens, warm browns, cool teals - custom scheme by Subramanyam | #202020 |
nord |
Arctic-inspired palette - port of arcticicestudio/nord | #2E3440 |
sorbet2 |
Dark indigo base with purple, green, amber accents | #161821 |
sorbet3 |
Sorbet2 variant - same colors, different highlight group config | #161821 |
Statusline
The statusline is built entirely in pure Vimscript (no plugins):
NORMAL ~/path/to/file.py [python] [+] 10/42 23% 5
Colors change per mode:
- NORMAL - yellow background (
ctermbg=214) - INSERT - green background (
ctermbg=2) - COMMAND - red background (
ctermbg=1) - VISUAL / V-LINE / V-BLOCK - yellow background
A [tabs] warning appears when a file contains literal tabs (indicates mixed indentation).