Skip to content

Instantly share code, notes, and snippets.

@giggio
Last active August 26, 2019 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save giggio/8c74f54b5f12cd5e957d19e866d8ec41 to your computer and use it in GitHub Desktop.
Save giggio/8c74f54b5f12cd5e957d19e866d8ec41 to your computer and use it in GitHub Desktop.
A way to install vim on a windows container
# 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