Skip to content

Instantly share code, notes, and snippets.

View jonfuller's full-sized avatar

Jon Fuller jonfuller

View GitHub Profile
@phuf
phuf / Install-VIM.ps1
Created January 7, 2017 02:18
Install VIM on Windows Server Core
Set-ExecutionPolicy Unrestricted;
Invoke-WebRequest https://chocolatey.org/install.ps1 -UseBasicParsing | Invoke-Expression;
choco install vim
choco update vim
$command = (Get-itemProperty -LiteralPath "HKLM:\SOFTWARE\Classes\`*\shell\Vim\Command").'(default)';
if ($command -match "`"([^`"]+)`".*") {
$expression = "Set-Alias -Name 'vim' -Value '$($Matches[1])';"