This is still something of my own config
Nvix is a collection of the .config/nvim files that are used to customize neovim that I have configured and used by me.
NOTE: Windows and Linux/Unix/WSL have different paths for nvim configurations:
Linux/Unix/WSL: ~/.config/nvim/init.vim or ~/.vimrc (for compatibility with Vim)
Windows: C:\Users\username\AppData\Local\nvim\init.vim
And I am focusing on Linux/Unix/WSL
git commit amend -m "Amended the version of nvim (0.9.5); harpoon.lua to the directory structure"
See nvim repo to see the installation details, or I have provided them below as well so you can build it by yourself.
sudo apt-get install ninja-build gettext cmake unzip curl
git clone https://github.com/neovim/neovim.git
cd neovim
git checkout v0.9.5
make CMAKE_BUILD_TYPE=Release
sudo make install
-
Nvix uses vim-plug as the plugin manager.
Reffer to vim-plug for installation steps. Otherwise, I have provided the necessary steps below.
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
curl -fLo ~/.var/app/io.neovim.nvim/data/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |`
ni "$(@($env:XDG_DATA_HOME, $env:LOCALAPPDATA)[$null -eq $env:XDG_DATA_HOME])/nvim-data/site/autoload/plug.vim" -Force
Run this command in your terminal:
git clone https://github.com/Rektagun/Nvix $HOME/.config/nvim
But, if you already have used nvim before, you must have something in the directory.. In this case you should use:
mv .config/nvim .config/nvim_backup
git clone https://github.com/Rektagun/Nvix .config/nvim
mv .config/nvim_backup/ .config/nvim/
rm -rf .config/nvim_backup
This way, you'll keep the things you already have in the config, given that they won't collide with each other.
Another way is to delete the config file alltogether and then cloning the repo:
rm -rf .config/nvim
git clone https://github.com/Rektagun/Nvix .config/nvim
Wow
To open nvim, type:
nvim
Now that nvim
is open, you might see an error, just hit Esc and run :PlugInstall
, now quit nvim by :q
and reopen it.
You can see many keymappings, use them to navigate to the plugins.vim
file, and uncomment the plugins you want to use (simply go on the line and use :gcc
or :gc
to comment/uncomment.
After doing that, run :w
and then :source %
or :so
, you can also just use Ctrl+S
(which is one of the keymappings to save-source and go to Startify at the same time, hehe).