I am using vim-plug - A minimalist Vim plugin manager. Check on the link for installation.
This repo should be put in ~/.config
directory (for both Windows and Linux)
-
Download latest NeoVim and put it in root of
C
drive (like thisC:\Neovim\bin
) -
On Windows run this command to link nvim configuration to a folder where it is expected on
Windows (with Git Bash):
ln -s $XDG_CONFIG_HOME/nvim ~/AppData/Local/nvim
If this doesn’t work try running
cmd
as admin and run:mklink /D %HOMEDRIVE%%HOMEPATH%\AppData\Local\nvim %HOMEDRIVE%%HOMEPATH%\.config\nvim
-
Install vim-plug with PowerShell:
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
-
Now run
C:\Neovim\bin\nvim-qt.exe
. If window goes black, just wait, it is installing…
-
Add
nvim
to path - opencmd
as administrator and execute:setx /M path "%path%;C:\Neovim\bin\\"
-
Set
nvim
as git editor - openGit Bash
and execute:git config --global core.editor nvim-qt
To make VSCodium behave like Neovim I copied stuff from this repo. In this video author of repo explains his setup. Also check his blog post.
-
You need to change
init.vim
to point to yourvscode/settings.vim
from this repository.So you need to change this line
source C:\.config\nvim\vscode\settings.vim
.-
init.vim
location:-
Windows:
~\AppData\Local\nvim\init.vim
orC:\.config\nvim\init.vim
. -
Linux:
~/.config/nvim/init.vim
.
-
-
-
Also so you need to change this two files in your VSCode/VSCodium:
-
keybindings.json
: pressCTRL+SHIFT+P
and typeOpen Keyboard Shortcuts (JSON)
and paste keybindings -
settings.json
: pressCTRL+SHIFT+P
and typeOpen Settings (JSON)
and paste settings.In this file you need to change:
-
neovimExecutablePaths
: path to yourneovim
executable -
neovimInitVimPaths
:init.vim
config
-
-
In order to properly function you must to install this extensions:
-
Neo Vim
-
Which Key
-
vscode-viml-syntax
(this is not necessary but helps with editing.vim
files)
-
CTRL + h/j/k/l
- move between open windows, explorer, terminal…
-
SPACE + e
- toggle explorer -
a
- create new file -
A
- create new folder -
r
- rename selected file -
l
- open selected file