Last active
August 26, 2019 19:09
-
-
Save giggio/8c74f54b5f12cd5e957d19e866d8ec41 to your computer and use it in GitHub Desktop.
A way to install vim on a windows container
This file contains 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
# run with iex ((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/giggio/8c74f54b5f12cd5e957d19e866d8ec41/raw/52e7a12376cdfa5e23a29972a220685a8f64c9c7/installvim.ps1')) | |
Invoke-WebRequest http://ftp.vim.org/pub/vim/pc/vim81w32.zip -outfile vim.zip | |
Add-Type -AssemblyName System.IO.Compression.FileSystem | |
[System.IO.Compression.ZipFile]::ExtractToDirectory("$(pwd)\vim.zip", 'c:\windows\') | |
$vimFolder = "C:\windows\vim" | |
$vim8Folder = "$vimFolder\vim81" | |
mv $vim8Folder\vim.exe c:\windows | |
mv $vim8Folder\xxd.exe c:\windows | |
mv $vim8Folder\tee.exe c:\windows | |
rm -Recurse -Force $vimFolder | |
rm vim.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment