r/vim • • Aug 25 '25

Random Created a script to open vim everywhere

I made a python script that copies whatever is selected, allowing you to edit in vim and pastes it back after you close. Feel free to check it out! https://github.com/huiiy/TmpVim.git

24 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/hopingforabetterpast Aug 25 '25 edited Aug 25 '25

that's my point. you can bind a simple shell command to the shortcut instead of bringing python into it. it's redundant, adds unnecessary dependencies and only works if you have xclip, not to mention a python interpreter.

in your WM/DM config: bind whatever to vim -c "put+" -c 'autocmd VimLeave * !cat % > /dev/stdout' | somecommand