Skip to content

Instantly share code, notes, and snippets.

@Tirke
Last active July 5, 2022 14:22
Show Gist options
  • Save Tirke/ccd4987d16677f734e30f7c532583f34 to your computer and use it in GitHub Desktop.
Save Tirke/ccd4987d16677f734e30f7c532583f34 to your computer and use it in GitHub Desktop.
run vim in things without sudo
process
.on('unhandledRejection', (reason, p) => {
console.error(reason, 'Unhandled Rejection at Promise', p);
})
.on('uncaughtException', err => {
console.error(err, 'Uncaught Exception thrown');
process.exit(1);
});
mkdir ~/vim
cd ~/vim
# Staically linked vim version compiled from https://github.com/ericpruitt/static-vim
# Compiled on Jul 20 2017
wget 'https://s3.amazonaws.com/bengoa/vim-static.tar.gz'
tar -xf ./vim-static.tar.gz
export VIMRUNTIME="$HOME/vim/runtime"
export PATH="$HOME/vim:$PATH"
cd -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment