Re:Vim Anywhere
by zipperhead on Saturday February 17, 2018 @10:34AM
(#16401105)
I use something like this but I initialize the file with the contents of the clipboard. I use xclip but I think xsel can do the same. Here's a snippet:
xclip -o > "$tmpfile" # initialize file with clipboard contents
gvim --nofork "$tmpfile"
xclip -i "$tmpfile" # push file to clipboard
Bind it to a global hotkey and you can use it from anywhere.
Bonus: This works anywhere xorg is available.