Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Feb 5, 2014

so cool implementation, thanks!

@troex

This comment has been minimized.

Copy link

@troex 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

This comment has been minimized.

Copy link

@schneems 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

This comment has been minimized.

Copy link

@lanzhiheng 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

This comment has been minimized.

Copy link

@jasonheecs jasonheecs commented Jan 21, 2020

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