Is there a way to source the ~/.config/nvim/init.vim
file from within nvim?
With vanilla vim you can source .vimrc with :so %
: Is there an equivalent method do with similarly in neovim?
$MYVIMRC
is always available from inside vim or neovim, so you can just use
:source $MYVIMRC
and bind it to a convenient mapping:
nnoremap <Leader>sv :source $MYVIMRC<CR>
2021 update: If you are using neovim with a lua config, you can use :luafile $MYVIMRC
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With