My Vim setup: amix/vimrc as the base runtime,
coc.nvim + clangd for C/C++/CUDA intellisense, and a port of the Cursor Dark
theme. This repo is my live ~/.vim directory; the loader files vim expects
elsewhere are symlinks into it.
| File | Purpose |
|---|---|
vimrc |
Loader (symlinked from ~/.vimrc) — sources the amix runtime |
my_configs.vim |
All personal config: keymaps, coc, clipboard provider, theme tweaks (symlinked from ~/.vim_runtime/my_configs.vim) |
coc-settings.json |
coc.nvim settings (clangd path and arguments) |
colors/cursor-dark.vim |
Cursor Dark colorscheme (VS Code theme port) |
after/syntax/c.vim |
VS Code-style extra highlights for C/C++/CUDA (function names, operators, members) |
clangd/config.yaml |
Machine-level clangd config — CUDA flags for this machine (symlinked from ~/.config/clangd/config.yaml) |
# 1. amix runtime
git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
# 2. this repo
git clone https://github.com/maxxfuu/vimrc.git ~/.vim
ln -sf ~/.vim/vimrc ~/.vimrc
ln -sf ~/.vim/my_configs.vim ~/.vim_runtime/my_configs.vim
mkdir -p ~/.config/clangd && ln -sf ~/.vim/clangd/config.yaml ~/.config/clangd/config.yaml
# 3. plugins that live outside the amix runtime
git clone --branch release --depth=1 https://github.com/neoclide/coc.nvim.git ~/.vim_runtime/my_plugins/coc.nvim
git clone --depth=1 https://github.com/luochen1990/rainbow.git ~/.vim_runtime/my_plugins/rainbow
# 4. tools (user-space installs in ~/.local — no root needed)
# - node (coc's runtime): https://nodejs.org/dist/ tarball -> ~/.local/opt, symlink into ~/.local/bin
# - clangd: https://github.com/clangd/clangd/releases zip -> ~/.local/opt, symlink into ~/.local/bin
# - wl-clipboard (Wayland clipboard for the provider in my_configs.vim):
# apt-get download wl-clipboard && dpkg -x wl-clipboard*.deb d && cp d/usr/bin/wl-* ~/.local/bin
# 5. inside vim
vim -c 'CocInstall -sync coc-clangd' -c 'qall'Then edit clangd/config.yaml for the machine's GPU arch / CUDA path.
Per-project CUDA repos keep only portable settings in their .clangd.