3 ms·
And worse vim is often the default EDITOR or software's fallback in case no EDITOR is set, so you get dropped into a vim edition buffer seemingly randomly.
by masklinn 10y ago
And worse vim is often the default EDITOR or software's fallback in case no EDITOR is set, so you get dropped into a vim edition buffer seemingly randomly.
- fishywang 10y agoI'm pretty sure that I've never seen any OS/Linux distribution set default EDITOR to vim. If EDITOR is set to vim, then someone must intentionally did that.
- dsp1234 10y agogit bash on windows has vim as the default editor when editing commit messages
- fishywang 10y agoMaybe someone should file a bug to them? I don't think vim is a sane default value for EDITOR, but I have no idea whether there's any sane alternative on Windows.
- xxs 10y ago'nano' is fine
- hepek 10y agoI believe POSIX defines vi as mandatory visual text editor, which makes it present on any compliant OS and thus a sane default value for EDITOR.
- masklinn 10y agoTechnically it's part of the optional "User Portability Utilities" feature group, and so is ex, the only mandatory editor in POSIX is "ed".
- simopaa 10y agoI switched to nano recently, and it wasn't as easy as it perhaps should have been: https://stackoverflow.com/questions/36802996/bash-nano-command-not-found-at-windows-git-bash https://stackoverflow.com/questions/36802996/bash-nano-comma...
- slrz 10y agoRight. Many programs react to an unset EDITOR variable by assuming vi though. This makes sense, of course, as virtually all systems are going to have some implementation of vi installed. Even the almighty ed tends to be missing from the default install of some recent Linux distributions.
- YeGoblynQueenne 10y agoThat's probably out of mercy- saves people from getting stuck in ed.
- JdeBP 9y agoOnly if they have wrongly conflated EDITOR and VISUAL.
- deleted 10y ago[deleted]
- throwaway2016a 10y agoIn OS X it is vim.