Inspired by Derek Wyatt's Vim Configuration
This .vimrc is designed for modern, efficient, and intuitive Vim usage, particularly on macOS/Linux. It balances minimalism with developer-friendly features and practical defaults.
- Automatically installs
vim-plugif missing. - Plugins grouped by function: language support, UI, navigation, completion, etc.
- Wrapped line navigation via
<C-j>/<C-k>. - Quick buffer switching with
<Leader><Leader>. - File tree navigation with
NERDTree, toggleable via<Leader>n. - Tab navigation and visual enhancements.
- LSP support via
coc.nvim, preconfigured with defaults. - Syntax highlighting for common languages (e.g. Haskell).
- Autoformatting on save where configured.
- Git commands via
vim-fugitive(e.g.:Gstatus,:Gdiff, etc.).
- True color and
termguicolors. vim-airlinefor an informative and aesthetic statusline.- Customizable theme with support for light/dark switching via
ToggleTheme(). - Consistent cursor styles per mode.
- macOS clipboard support.
- Automatic undo/swap/backup directories under
~/.vim/tmp/.
# Backup existing config
mv ~/.vimrc ~/.vimrc.bak
mv ~/.vim ~/.vim.bakClone the repo
git clone https://github.com/normenmueller/dot.vim.git ~/.vim
ln -s ~/.vim/vimrc ~/.vimrcOpen Vim and install plugins
vim +PlugInstall +qall
Ensure vim-plug is available. If not:
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vimautocmd BufWritePost * silent! call CocAction('runCommand', 'editor.action.organizeImport')- ✅ Minimal but practical: avoids bloat while enabling modern dev workflows.
- ✅ macOS/Linux friendly: clipboard, paths, and shell integration.
- ✅ Modular and extensible: easy to add or remove plugins.
- ✅ Great UX: wrapped lines, color support, buffer switching, etc.
🚀 Try it and enjoy a cleaner, more powerful Vim! 🚀