r/programming • • May 23 '17

Stack Overflow: Helping One Million Developers Exit Vim

https://stackoverflow.blog/2017/05/23/stack-overflow-helping-one-million-developers-exit-vim/
9.2k Upvotes

1.1k comments sorted by

View all comments

Show parent comment

6

u/[deleted] May 23 '17

Not all programs use $EDITOR though, e.g. visudo. Before I learned how to use Vim, I just made /usr/bin/vim a symlink to Nano. Nasty, but it works for everything.

3

u/yeahbutbut May 24 '17

Yeah, visudo has a hard coded list of paths built in. You can usually use "emacs" but "emacs -nw" (or anything but the command or it's full path) will make it use the default instead of doing what could be arbitrary command execution as root.