Settings

Theme

Vimer - Avoid multiple instances of GVim with gvim –remote[-tab]-silent wrapper

github.com

6 points by grepgeek 6 years ago · 2 comments

Reader

westurner 6 years ago

I have a shell script I named 'e' (for edit) that does basically this. If VIRTUAL_ENV_NAME is set (by virtualenvwrapper), e opens a new tab in that gui vim remote if gvim or macvim are on PATH, or just in a console vim if not. https://github.com/westurner/dotfiles/blob/develop/scripts/e

'editwrd'/'ewrd'/'ew' does tab-completion relative to whatever $_WRD (working directory) is set to (e.g. by venv) and calls 'e' with that full path: https://github.com/westurner/dotfiles/blob/develop/scripts/_...

It's unfortunately not platform portable like vimer, though.

joshca 6 years ago

> alias myvim="gvim --remote-silent"

I frequently switch between Linux, Mac and Windows. Is there a good way to set up such aliases on Windows?

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection