title: How do I make NeoVim my default text/code editor?
body: <p><strong>Is there a way to make NeoVim as default text/code editor</strong> (without any bad side effects) <strong>?</strong><br/>Trust me, I looked to lots of StackOverflow question/answers and tried a few things but nothing worked for me.</p>
  <p><strong>Note</strong>: I'm on <strong>macOS Big Sur</strong> (version <strong>11.2.1</strong>). What I want is when I click on files to open in NeoVim.
  <br/>
  <br/>
  <br/>
  --&gt; <strong>For example</strong>, in <strong>~/.zshrc</strong> (and added to ~/.bash_profile also just in case) <strong>I have</strong>:</p>
  <p><strong>Note</strong>: zsh is my default shell</p>
  <pre><code>alias nvim=$HOME/nvim-osx64/bin/nvim
  export EDITOR=&quot;nvim&quot;
  export VISUAL=&quot;nvim&quot; 
  </code></pre>
  <p>When I do <code>set</code> in Terminal it shows:</p>
  <pre><code>EDITOR=nvim
  VISUAL=nvim
  </code></pre>
  <p><strong>And yes</strong>, I quit and started the terminal (I'm using <strong>iTerm2</strong>). I even reboot.
  <br/>
  <br/></p>
  <p>--&gt; I will place <strong>my $PATH</strong> here just in case it has anything to do it that. When I do <code>echo $PATH</code> it shows:</p>
  <p><a href="https://i.stack.imgur.com/3yuRL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3yuRL.png" alt="enter image description here" /></a></p>
  <br/>
  <p>--&gt; And, just in case someone suggests:<br/>
  I can't <code>Select a File</code> &gt; <code>Open With...</code> and select NeoVim as default text editor, since that option doesn't show and I can't do <code>Choose Other</code> since I can't select NeoVim in that way.
  <br/>
  <br/>
  <br/>
  <strong>If anyone needs more information, please say and I will edit the question with that info. Thanks!</strong></p>