Inspired by Derek Wyatt's Vim Configuration
This .vimrc
is designed for modern, efficient, and intuitive Vim usage, particularly on macOS. It provides an excellent balance between usability, performance, and extensibility.
- Automatically installs
vim-plug
if missing. - Well-structured plugin organization.
- Smooth cursor movement within wrapped lines (
<C-j>
/<C-k>
). - Fuzzy file searching with CtrlP (or optional
fzf
). - NERDTree for efficient file navigation.
- Full
coc.nvim
integration with:<C-n>
/<C-p>
for navigation.<Tab>
/<CR>
for selection (with space auto-insertion).
- Haskell support (
vim-hindent
,haskell-vim
). - Auto spellcheck for Git commits.
- Dark/light mode detection with
ToggleTheme()
. - Auto-create swap & undo directories (
~/.vim/tmp/
).
- True color support (
termguicolors
). - Powerful status bar with
vim-airline
. - Consistent cursor styles in different modes.
To install it, do the following:
- Wipe out your
~/.vimrc
file and~/.vim
directory (back up if you wish) git clone https://github.com/normenmueller/dot.vim.git ~/.vim
ln -s ~/.vim/vimrc ~/.vimrc
- Start Vim
:PlugInstall
to install Vim bundles via vim-plug
Vim will install it automatically, but you can also run:
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
Uncomment these lines in .vimrc
:
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Set this option:
let g:NERDTreeQuitOnOpen = 1
autocmd BufWritePost * silent! call CocAction('runCommand', 'editor.action.organizeImport')
✅ Minimal, yet powerful. ✅ MacOS-optimized. ✅ Intuitive autocomplete & navigation. ✅ Easy to extend & modify.
🚀 Give it a try and supercharge your Vim experience! 🚀