Created
February 21, 2018 12:14
-
-
Save finnoleary/8ac16ff1cda89199b9836ff558912206 to your computer and use it in GitHub Desktop.
Vim Anywhere replacement (Anywhere Xorg will run this will)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
dir="/tmp/vim-anywhere/" | |
fn="$(date -Iseconds)" | |
[ ! -d $dir ] && mkdir $dir | |
$TERM -c 'vim $dir$fn' && cat $dir$fn | xsel -b -i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment