Skip to content

Latest commit

Β 

History

History
95 lines (61 loc) Β· 2.52 KB

File metadata and controls

95 lines (61 loc) Β· 2.52 KB

nemron's Vim Configuration

Inspired by Derek Wyatt's Vim Configuration

πŸ›  My Ultimate 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.

✨ Features

πŸ”Ή Plugin Management with vim-plug

  • Automatically installs vim-plug if missing.
  • Plugins grouped by function: language support, UI, navigation, completion, etc.

πŸ”Ή Navigation & Usability Enhancements

  • 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.

πŸ”Ή Language and Linting Support

  • LSP support via coc.nvim, preconfigured with defaults.
  • Syntax highlighting for common languages (e.g. Haskell).
  • Autoformatting on save where configured.

πŸ”Ή Git Integration

  • Git commands via vim-fugitive (e.g. :Gstatus, :Gdiff, etc.).

πŸ”Ή UI & Visual Improvements

  • True color and termguicolors.
  • vim-airline for an informative and aesthetic statusline.
  • Customizable theme with support for light/dark switching via ToggleTheme().
  • Consistent cursor styles per mode.

πŸ”Ή System Integration

  • macOS clipboard support.
  • Automatic undo/swap/backup directories under ~/.vim/tmp/.

πŸš€ Installation

# Backup existing config
mv ~/.vimrc ~/.vimrc.bak
mv ~/.vim ~/.vim.bak

Clone the repo

git clone https://github.com/normenmueller/dot.vim.git ~/.vim
ln -s ~/.vim/vimrc ~/.vimrc

Open 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.vim

πŸ”§ Optional Configurations

Automatically organize imports (CoC)

autocmd BufWritePost * silent! call CocAction('runCommand', 'editor.action.organizeImport')

🎯 Why Use This .vimrc?

  • βœ… 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! πŸš€