Last Updated: February 25, 2016
·
864
· chizcw

Make vim's ':e' work in your terminal

This only makes sense on a system where you're using gvim for your editing, but you can save yourself wasted seconds from 'edit file' muscle memory taking over with the bash alias:

alias :e='gvim --remote-silent'

More information on --remote and --remote-silent available at vimdoc: http://vimdoc.sourceforge.net/htmldoc/remote.html

2 Responses
Add your response

Thx for this tip ! That's so a time saving tip. I can't count how many times I type :q, :wq, :e ... in the terminal.

over 1 year ago ·

You can also set the VISUAL variable to this so gvim is used for git commits and other CLI programs that start an editor

over 1 year ago ·