---
title: "💭 Switching Configs in Neovim • Michael Uloth"
description: "!https://michaeluloth.com/neovim-switch-configs/"
date: 2024-08-21
published: true
tags:
  - nvim
  - thought
template: link
---


<div class="embed-card embed-card-external">
  <a href="https://michaeluloth.com/neovim-switch-configs/" class="embed-card-link" target="_blank" rel="noopener noreferrer">
    <div class="embed-card-image">
      <img src="https://res.cloudinary.com/ooloth/image/upload/c_fill,w_1200,h_630/v1694064460/mu/ratchet-set.jpg" alt="Switching configs in Neovim — How to maintain multiple Neovim configurations and switch between them" loading="lazy">
    </div>
    <div class="embed-card-content">
      <div class="embed-card-title">Switching configs in Neovim</div>
      <div class="embed-card-description">How to maintain multiple Neovim configurations and switch between them</div>
      <div class="embed-card-meta">Michael Uloth &middot; michaeluloth.com</div>
    </div>
  </a>
</div>


Switching between nvim configs can be really easy to do since they implemented the `NVIM_APPNAME` Environment Variable.

``` bash
NVIM_APPNAME=nvim-lazyvim nvim
```

Now config will be loaded from `~/.config/nvim-lazyvim`

Michael lays out some aliases in the full article.

``` bash
alias v='nvim' # default Neovim config
alias vz='NVIM_APPNAME=nvim-lazyvim nvim' # LazyVim
alias vc='NVIM_APPNAME=nvim-nvchad nvim' # NvChad
alias vk='NVIM_APPNAME=nvim-kickstart nvim' # Kickstart
alias va='NVIM_APPNAME=nvim-astrovim nvim' # AstroVim
alias vl='NVIM_APPNAME=nvim-lunarvim nvim' # LunarVim
````


!!! note

    This post is a <a href="/thoughts/" class="wikilink" data-title="Thoughts" data-description="These are generally my thoughts on a web page or some sort of url, except a rare few don&#39;t have a link. These are dual published off of my..." data-date="2024-04-01">thought</a>. It's a short note that I make
    about someone else's content online <a href="/tags/thoughts/" class="hashtag-tag" data-tag="thoughts" data-count=2 data-reading-time=3 data-reading-time-text="3 minutes">#thoughts</a>
