No Neovim Required: Non-Invasively Turn Classic Vim 9 + vimplus into a Modern Dark Frosted-Glass Editor
Search for “how to modernize Vim” and nine out of ten guides open with “first migrate to Neovim + LazyVim.” Yet if you already have classic Vim 9 + vimplus + coc.nvim dialed in on Ubuntu—with all your muscle memory wired to comma (,) leader mappings—there is zero reason to throw everything away for a Lua rewrite.
By editing just 3 user-layer custom files (without ever touching ~/.vimplus/.vimrc), you can turn classic Vim 9 into a fast, modern dark frosted-glass terminal editor that blends seamlessly with the Ubuntu dark desktop and VS Code / Cursor setup built earlier in this series:
- Unified dark frosted-glass visuals: 24-bit truecolor
Catppuccin Mochalets your frosted terminal background shine through the editor pane, while keepingPmenucompletion menus andcoc.nvimhover windows opaque dark with sky-blue rounded borders for effortless legibility. - Modern UI ergonomics: pill-shaped
vim-airlinestatus and tab bars, minimal split dividers, hidden~end-of-buffer tildes, mode-aware terminal cursor shapes, and Vim 9 nativeleadmultispaceindent guides replacing legacyindentLine. - Disciplined, verified performance: ~130ms cold startup, bounded syntax highlighting and sync depth on long lines, and true buffer-local >2MB large-file degradation that leaves zero side effects when you switch back to normal source files.
Here is the real result on my primary workstation (Ubuntu 22.04 LTS + dark frosted-glass Terminator + Vim 9.2 + Sarasa Term SC Nerd):

1. Test Baseline and Non-Invasive 3-File Boundary
This guide works both standalone and as the visual/performance capstone to Ubuntu vimplus Setup and Configuration Guide earlier in this series.
| Dimension | Tested Baseline |
|---|---|
| OS & Editor | Ubuntu 22.04 LTS + Vim 9.2 + vimplus + coc.nvim (clangd) |
| Terminal & Font | Terminator (frosted transparent background) + Sarasa Term SC Nerd |
| Color Palette | Catppuccin Mocha (aligned with VS Code / Cursor) |
| Cold Startup | ~131.8ms measured (with NERDTree / Airline / LeaderF / Tagbar / coc.nvim active) |
To keep future upgrades and rollbacks painless, every single change is strictly scoped to 3 user-layer files, leaving ~/.vimplus/.vimrc completely untouched:
~/.vimrc.custom.plugins: adds just 1 line for thecatppuccin/vimtheme plugin.~/.vimrc.custom.config: holds truecolor setup, layered transparency, pill status line, Vim 9 native indent guides, and performance/large-file hooks.~/.vim/coc-settings.json: enables rounded borders forcoc.nvimcompletion, hover documentation, and diagnostic floats.
2. Step 1: Install the catppuccin/vim Theme Plugin
Append one line to ~/.vimrc.custom.plugins for the official Vim theme plugin (which bundles both catppuccin_mocha and its matching vim-airline theme):
1 | " ~/.vimrc.custom.plugins |
In Vim, press ,s to reload your config and run ,,i (or :PlugInstall). If GitHub occasionally times out from inside vim-plug, you can drop it straight into the plugin directory with a single shallow clone:
1 | git clone --depth=1 https://github.com/catppuccin/vim.git ~/.vim/plugged/catppuccin |
3. Step 2: Core Visuals & Performance Config (~/.vimrc.custom.config)
Below is the complete block you can append directly to the end of ~/.vimrc.custom.config (each non-obvious trade-off is explained inline and unpacked right after):
1 | """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
There are 5 intentional anti-pitfall design choices packed into that snippet:
- Why register
autocmd ColorScheme *before callingcolorscheme?
Putting barehighlight Normal guibg=NONElines aftercolorschemebreaks the moment you reload your config or switch colorschemes. Registering theColorSchemeautocmd upfront and wrapping the switch intry/catchensures transparency applies on first load while safely falling back toonedarkon a fresh machine before:PlugInstallhas run. - Why layer “transparent main pane + opaque popups”?
MakingPmenuandCocFloatingtransparent looks clever in screenshots until completion items and hover docs sit on top of colorful code and turn into unreadable visual soup. Pinning floats to opaque Catppuccin Base (#1e1e2e), a sky-blue border (#89b4fa), and a high-contrast selection bar (#3584e4) delivers frosted-glass ambiance without sacrificing IDE-grade legibility. - Why use
"\ue0b4"–"\ue0b7"escapes instead of literal glyphs for Airline pills?
Powerline rounded separators live in the Unicode Private Use Area. Pasting raw glyphs into web pages frequently renders as□boxes or silently corrupts when copied. In Vim 9, double-quoted escapes like"\ue0b4"are byte-for-byte identical to the literal characters and copy-paste cleanly every time. - Why replace
indentLinewith Vim 9 nativeleadmultispaceand setttimeoutlen=10?indentLinerelies onconceal, which regularly hides quotes in JSON/Markdown and slows down scrolling in large files. Vim 9’s nativelistchars=...,leadmultispace:│\ \ \is rendered directly in C with zero plugins, zero lag, and zero text distortion.ttimeoutlen=10eliminates the sluggish pause when pressingEscto exit Insert mode while remaining safer than0(which can split arrow-key escape sequences over jittery SSH ortmuxlinks).
- Why avoid
syntax offor a naiveBufReadPrefiletype=largefileone-liner?- The most copy-pasted large-file snippet on the web runs
autocmd BufReadPre * ... | setlocal eventignore+=FileType foldmethod=manual noswapfile | syntax off. That hides two global bugs:eventignoreis a strictly global option (sosetlocalpermanently mutates&eventignore, breakingFileTypedetection for every subsequent small file in that Vim instance), andsyntax offturns off syntax highlighting globally across the entire process. - On the other hand, if you drop
eventignoreandsyntax offand merely setsetlocal filetype=largefileinBufReadPre, Vim’s internalreadfile()resetsdid_filetypeupon enteringBufRead, allowingfiletypedetectto fire*.cpp -> setf cppanyway—causingtagbarto runctagssynchronously over a multi-megabyte.cppfile and freeze the editor. - Because this 3-stage hook is registered in
~/.vimrc.custom.config, it runs afterfiletypedetectand beforecoc_nvimandTagbarAutoCmds:BufReadPresuppressesFileType,Syntaxonly during the read,BufReadPost/BufWinEnter(with aBufEntersafety net) immediately restores global&eventignore, appliesnoautocmd setlocal filetype=largefile+syntax=OFFsococ.nvimandtagbarskip in0ms, and sets a window-dirty flagw:large_file_win_dirty = 1that restoresfoldmethod,wrap,list, andcursorlineviasetlocal ...<as soon as you switch back to a normal file.
- The most copy-pasted large-file snippet on the web runs
4. Step 3: Enable Opaque Rounded Floats in coc.nvim (~/.vim/coc-settings.json)
Pair the CocFloating and FloatBorder highlight groups above with rounded borders in ~/.vim/coc-settings.json for hover docs, completion popups, and diagnostic floats:
1 | { |
Save and open a C++ file backed by compile_commands.json to verify both everyday popup flows:
- Press
Kfor symbol hover documentation: the opaque#1e1e2efloat with a thin#89b4farounded border sits cleanly above the frosted code pane—signatures, parameter types, and docstrings stay razor sharp with zero bleed-through:

- Enter Insert mode and type
cache_.to triggerclangdcompletion: the bottom-left Airline pill flips smoothly to mint greenINSERT, the cursor narrows to a vertical bar (\e[6 q), and the rounded dark completion popup opens cleanly:

5. Step 4: Verify Startup Latency, Options, and Large-File Isolation
Don’t eyeball it—verify cold start time, active options, and large-file isolation with three concrete checks.
1. Cold Startup Benchmark
1 | vim --startuptime /tmp/vim-startup.log +q && tail -n 15 /tmp/vim-startup.log |
Measured tail on my machine (131.8ms total—effectively instantaneous in daily use):
1 | 078.115 002.935 002.935: sourcing ~/.vim/plugged/vim-fugitive/autoload/fugitive.vim |
2. Active Theme & Core Option Check
Run inside Vim:
1 | :echo g:colors_name &termguicolors &number &relativenumber |
Expected output (theme name, 24-bit truecolor on, absolute line numbers on, relative line numbers off):
1 | catppuccin_mocha 1 1 0 |
3. Dual-Machine >2MB Large-File Buffer Isolation Test
Tested on both Ubuntu 22.04 and Ubuntu 24.04 using generated 3MB+ .cpp files and normal small .cpp files across both :edit large.cpp -> :edit small.cpp and CLI launch vim large.cpp -> :edit small.cpp:
| Test Environment | Sample Files | Large-File Buffer State | Switching Back to Small .cpp in Same Window |
|---|---|---|---|
Ubuntu 22.04 + Vim 9.2 + coc.nvim + tagbar |
3.2MB (38,000 lines) .cpp → 88B .cpp |
0.0337s (33.7ms instant open)b:large_file=1, b:coc_enabled=0, ft=largefile, syn=OFF, synID= (empty), ul=-1, foldmethod=manual, list=0, cursorline=0 |
b:large_file=0, ft=cpp, syn=cpp; full syntax groups active (#include → cInclude, int → cType, strings → cppString); list=1, cursorline=1 auto-restored; &g:eventignore empty and g:syntax_on=1 |
Ubuntu 24.04 + Vim 9.1 + YouCompleteMe |
3.3MB (100,000 lines) .cpp → small .cpp |
ft=largefile, syn=OFF, skips heavy parsers for instant open |
ft=cpp, syn=cpp, cInclude/cType highlights and list=1 fully restored with zero global leakage |
6. Quick Toggles and One-Command Backup & Rollback
1. Three High-Frequency Toggles
| Preference | Edit in ~/.vimrc.custom.config |
|---|---|
| Solid dark background (no frosted transparency) | Comment out the 4-line augroup ModernVimBeautify block to keep catppuccin_mocha‘s native #1e1e2e opaque base |
Hybrid relative line numbers (6j / 8k) |
Uncomment " set relativenumber to pair with set number (absolute on current line, relative above/below) |
Hide trailing-space dots (·) |
Remove trail:·, from listchars: set listchars=tab:▸\ ,leadmultispace:│\ \ \ |
2. One-Command Backup & Lossless Rollback
Snapshot all three user-layer files before editing; roll back cleanly at any time with a single copy command:
1 | # One-command backup |
Classic Vim 9 + vimplus now matches your dark frosted-glass workstation in both aesthetics and speed. If you also want to bring your daily VS Code / Cursor polish, plugin-free tmux pill status bar (with truecolor and LSP undercurl passthrough), git-delta / fzf / fd / zoxide terminal workflow chain, and Typora / Guake / gedit into the exact same Catppuccin Mocha visual language, continue to the final installment 👉 End-to-End Ubuntu Dev Tools Visual & Workflow Unification: VS Code, Cursor, tmux, Git Delta, fzf, and Typora.
Series Navigation
| # | Article | Core Topics |
|---|---|---|
#0 |
Ubuntu Workstation Setup · Series Index | End-to-end architecture blueprint, dual-machine baseline, and reading roadmap |
#1 |
Ubuntu 22.04 GNOME Desktop Configuration Guide | Fundamentals: GNOME extensions, window ergonomics, and X11 vs. Wayland |
#2 |
Ubuntu GNOME Dark Frosted-Glass Desktop Framework and Dual File Manager Blur Opacity Fix (22.04 / 24.04) | Fluent + Colloid + dynamic wallpaper, Blur my Shell tuning, and Nautilus/Nemo opacity fix |
#3 |
Font Stack, Strict fontconfig Binding, fcitx5, and Shortcut Pitfalls |
Inter + HarmonyOS Sans SC + Sarasa, strong binding, and IME troubleshooting |
#4 |
Terminal CLI, Qt5 Unification, VS Code/Cursor, and Chrome Alignment | eza/bat/btop/fastfetch, qt5ct palette alignment, editors, and offline-safe Chrome script |
#5 |
End-to-End Boot and Lockscreen Loop: GRUB, Plymouth, GDM, and Lockscreen | GRUB baseline JPEG, Plymouth bgrt, non-destructive GDM, and global rollback matrix |
#6 |
Ubuntu vimplus Setup and Configuration Guide | Non-invasive vimplus modernization: coc.nvim + clangd, full LSP keymaps, and dual-mode Markdown preview |
#7 |
No Neovim Required: Non-Invasively Turn Classic Vim 9 + vimplus into a Modern Dark Frosted-Glass Editor (Current post) | Transparent Catppuccin Mocha, opaque rounded popups, pill status line, native Vim 9 indent guides, and buffer-local large-file optimization |
#8 |
End-to-End Ubuntu Dev Tools Visual & Workflow Unification: VS Code, Cursor, tmux, Git Delta, fzf, and Typora | VS Code/Cursor polish, plugin-free tmux pill status bar, delta/fzf/fd/zoxide chain, and Typora/Guake/gedit alignment |








