Skip to content

Instantly share code, notes, and snippets.

@tats-u
Last active March 14, 2019 16:02
Show Gist options
  • Save tats-u/8a8298efc8b0e099bef0dba7304f6a51 to your computer and use it in GitHub Desktop.
Save tats-u/8a8298efc8b0e099bef0dba7304f6a51 to your computer and use it in GitHub Desktop.
Run NeoVim by vim or vi in Windows PowerShell (Run `scoop install neovim` before)
if ((Get-Command nvim -ErrorAction Ignore)) {
if (-not (Get-Command vim -ErrorAction Ignore)) {
Set-Alias vim nvim
}
if (-not (Get-Command vi -ErrorAction Ignore)) {
Set-Alias vi vim
}
if (-not (Get-Command gvim -ErrorAction Ignore)) {
Set-Alias gvim nvim-qt
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment