open-in-editor
open-in-editor copied to clipboard
Vim support improvement
Recently #6 was merged. It adds basic support for open file in vim. However we need fix some issues:
- it always creates new session of vim on every open file request
- we need alternate what terminal to use – now it's Terminal, but we need iTerm support too
- bring vim window on top when request to open a file
//cc @pofigizm
Perhaps, the point about iTerm is very usefull, but I don't use it. It's bad idea to add support for it without checking how it works. I think it will be easy for iTerm's users. Possibly, them need to change here to iTerm. ))
Other points are not so clearly. I thought about them, but I didn't find right way. As a vim user, I can to open many vim sessions in different terminal tabs or windows parallely. Also I use terminal multiplexer Tmux, which can be used for opennig my vim session too. Which one do I have to chose for open my file?
One usefull case which I see, is grouping all files, opened via open-in-editor, in one session, but I couldn't find solution for this.
It seems the --remote argument could be used to open a file in the same VIM window http://vimdoc.sourceforge.net/htmldoc/remote.html .