From 35592da45215b9034321625af5c95a2759b7177d Mon Sep 17 00:00:00 2001 From: Kitty Cat Date: Thu, 28 Sep 2023 10:19:10 -0400 Subject: [PATCH] add vim alias to powershell --- pwsh/Microsoft.PowerShell_profile.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pwsh/Microsoft.PowerShell_profile.ps1 b/pwsh/Microsoft.PowerShell_profile.ps1 index 7595370..34ed0bc 100644 --- a/pwsh/Microsoft.PowerShell_profile.ps1 +++ b/pwsh/Microsoft.PowerShell_profile.ps1 @@ -14,3 +14,6 @@ oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/agnoster.minimal.omp.json" function hosts { Start-Process "notepad.exe" -Args "C:\Windows\system32\drivers\etc\hosts" -Verb runAs } + +# Set alias to vim to bypass batch file launcher, allows UNC editing +Set-Alias -Name vim -Value 'C:\Program Files\Vim\vim90\vim.exe'