4 ms·
Programs that put you into Vi, /should/ be calling $EDITOR, if $EDITOR is to to Vi(m), you should know how to use it. Also, if you ^C in Vi, you get the messag
by 013 10y ago
Programs that put you into Vi, /should/ be calling $EDITOR, if $EDITOR is to to Vi(m), you should know how to use it.
Also, if you ^C in Vi, you get the message:
Type :quit<Enter> to exit Vim
- palunon 10y agoAnd what if $EDITOR is not set ? Vi is the standard POSIX editor, calling it makes sense.
- JdeBP 10y agoActually, defaulting from $VISUAL to vi and from $EDITOR to ex (or ed) is what -- strictly speaking -- makes sense. Remember what the difference between $VISUAL and $EDITOR was intended to be. There's a whole range of places in Unix where there was, and even still is, a distinction between a line editor and a full screen editor. Consider, for just one example, the ~v and ~e commands in BSD Mail. Now enjoy the discussion at https://news.ycombinator.com/item?id=13113556 https://news.ycombinator.com/item?id=13113556 .