Vim/Neovim — Managing Multiple Project Settings

alpha2phi
5 min readMar 20, 2021

Managing project-specific settings for Vim/Neovim projects.

Photo by Octavian Dan on Unsplash

Overview

I talked about managing multiple databases and projects in my previous articles. On some occasions, you may have a need to manage multiple projects with configurations only specific to the projects.

In this article, let’s explore the available options we have in Vim/Neovim. I will start with the simplest solution and then move on to explore plugins we can use.

exrc, vimrc, nvimrc

If you set the exrc option in your .vimrc or init.vim file, Vim/Neovim will execute .exrc (for both Vim/Neovim), .vimrc (Vim), .nvimrc (Neovim) found in the current directory when Vim/Neovim is started.

set exrc

--

--

alpha2phi

Software engineer, Data Science and ML practitioner.