title: how to make vimrc changes permanent on Neovim
body: <p>I am new to nvim editor. i need help setting up my ~/.vimrc file. i have seen some tutorials and followed them. and came up with this:</p>
  <pre><code>&gt; vim ~/.vimrc
  </code></pre>
  <p>have added this to my vimrc.</p>
  <pre><code>syntax on
  
  set noerrorbells
  set tabstop=4 softtabstop=4
  set shiftwidth=4
  set expandtab
  set smartindent
  set nu
  </code></pre>
  <p>and then source the file</p>
  <pre><code>:source %
  </code></pre>
  <p>the changes get applied instantly. but when i exit the file and open it again the changes disappear. if i source it again it works. is there any way i can make these changes permanent.<br />
  <strong>[note] : when i exit the file i used <code>:x</code></strong><br />
  <strong>UPDATE:</strong><br />
  when i try to open <code>~/.config/nvim/init.vim</code> using vim. i am getting this error.</p>
  <pre><code>E325: ATTENTION
  Found a swap file by the name &quot;~/.local/share/nvim/swap//%home%manoj%.config%nvi
  m%init.vim.swp&quot;
            owned by: manoj   dated: Wed Mar 31 16:01:46 2021
           file name: ~manoj/.config/nvim/init.vim
            modified: YES
           user name: manoj   host name: manoj
          process ID: 15099
  While opening file &quot;/home/manoj/.config/nvim/init.vim&quot;
        CANNOT BE FOUND
  (1) Another program may be editing the same file.  If this is the case,
      be careful not to end up with two different instances of the same
      file when making changes.  Quit, or continue with caution.
  (2) An edit session for this file crashed.
      If this is the case, use &quot;:recover&quot; or &quot;vim -r /home/manoj/.config/nvim/init
  .vim&quot;
      to recover the changes (see &quot;:help recovery&quot;).
      If you did this already, delete the swap file &quot;/home/manoj/.local/share/nvim
  /swap//%home%manoj%.config%nvim%init.vim.swp&quot;
      to avoid this message.
  
  Swap file &quot;~/.local/share/nvim/swap//%home%manoj%.config%nvim%init.vim.swp&quot; alre
  ady exists!
  </code></pre>