Skip to content

Instantly share code, notes, and snippets.

@naaman
Last active July 6, 2023 13:50
Show Gist options
  • Star 23 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save naaman/2847793 to your computer and use it in GitHub Desktop.
Save naaman/2847793 to your computer and use it in GitHub Desktop.
vim on heroku
#!/usr/bin/env bash
mkdir vim
curl https://s3.amazonaws.com/heroku-vim/vim-7.3.tar.gz --location --silent | tar xz -C vim
export PATH=$PATH:/app/vim/bin
@masfusion
Copy link

so cool implementation, thanks!

@troex
Copy link

troex commented Sep 24, 2015

cool, would be great if you compile with some basic options enabled like syntax highlighting, right on :syntax on it return error because of broke path:

E484: Can't open file /app/vimbin/share/vim/syntax/syntax.vim

@schneems
Copy link

schneems commented Nov 20, 2017

I built a static binary of vim and put it on the Ruby s3 bucket

mkdir -p vim/bin
curl https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/heroku-16/vim.tgz --location --silent | tar xz -C vim/bin
export PATH=$PATH:/app/vim/bin

cc/ @naaman

@lanzhiheng
Copy link

lanzhiheng commented Nov 6, 2018

~ $ vim/bin/vim -h
vim/bin/vim: error while loading shared libraries: libXt.so.6: cannot open shared object file: No such file or directory

I run the script in heroku and get this error, It seems that we lack some share library in heroku's container. @naaman

@jasonheecs
Copy link

I made a heroku vim plugin that works with the heroku-16 stack:
https://github.com/jasonheecs/heroku-vim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment