Skip to content

Instantly share code, notes, and snippets.

@nanki
Created September 28, 2018 10:36
Show Gist options
  • Save nanki/a5984c3544cc193690caf3bc9152dd6d to your computer and use it in GitHub Desktop.
Save nanki/a5984c3544cc193690caf3bc9152dd6d to your computer and use it in GitHub Desktop.
vim runner
#!/bin/sh
vim -T builtin_dumb --not-a-term -c "$1" -c 'qa!' --cmd 'set nomore t_cl= t_cm=.' | sed -e 's/\.//g'
@nanki
Copy link
Author

nanki commented Sep 29, 2018

$ ./vim-runner.sh 'silent e test.rb|scriptnames' | head

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