Last active
May 7, 2025 18:18
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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