~/neovim config GitHub repo stars

                    .o88o.  o8o     
                    888 `"  `"'     
oooo d8b  .oooo.   o888oo  oooo     
`888""8P `P  )88b   888    `888     
 888      .oP"888   888     888     
 888     d8(  888   888     888  .o.
d888b    `Y888""8o o888o   o888o Y8P

Lean mean Neovim machine, 30-45ms startup time. Plugins are managed by Neovim’s built-in vim.pack, and almost all of them load lazily.

I started this configuration in 2014, when Vim became my primary editor. Use it as is, or fork it and make it your own: it’s at github.com/rafi/vim-config.

Prerequisites

Optional, but highly recommended: bat, fd, fzf, ripgrep and zoxide.

Install

  1. Clone the repository to ~/.config/nvim:

    bash
    mkdir -p ~/.config
    git clone git@github.com:rafi/vim-config.git ~/.config/nvim
  2. Run nvim. It installs all plugins on the first start. Then run :checkhealth to make sure your system meets the requirements.

  3. Run :RafiExtras (Spacemx), press Enter on the extras you want, and restart Neovim. Your choices are saved in rafi.json.

Upgrade

Update the config, and move plugins to the versions locked in its nvim-pack-lock.json:

bash
cd ~/.config/nvim
make update

To update plugins beyond that, review pending updates with :Packman (Spacel) and apply them with U. Update Mason packages with :Mason and U.

Coming from the lazy.nvim version? The upgrade notes list what changed.