News for hackers. Stuff that matters.
Re:Helping a Million Developers Exit Vim by a3n on Tuesday May 23, 2017 @01:57PM (#14403486)
vim myfile.txt opens myfile.txt, and literally does not show the splash screen.
Re:Helping a Million Developers Exit Vim by masklinn on Tuesday May 23, 2017 @02:00PM (#14403524)
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.
Re:Helping a Million Developers Exit Vim by fishywang on Tuesday May 23, 2017 @02:06PM (#14403605)
I'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.
Re:Helping a Million Developers Exit Vim by slrz on Tuesday May 23, 2017 @02:51PM (#14404057)
Right. 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.
Re:Helping a Million Developers Exit Vim by JdeBP on Friday May 26, 2017 @01:12PM (#14425634)
Only if they have wrongly conflated EDITOR and VISUAL.
Re:Helping a Million Developers Exit Vim by YeGoblynQueenne on Tuesday May 23, 2017 @03:24PM (#14404373)
That's probably out of mercy- saves people from getting stuck in ed.
Re:Helping a Million Developers Exit Vim by dsp1234 on Tuesday May 23, 2017 @02:10PM (#14403653)
git bash on windows has vim as the default editor when editing commit messages
Re:Helping a Million Developers Exit Vim by fishywang on Tuesday May 23, 2017 @02:14PM (#14403691)
Maybe 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.
Re:Helping a Million Developers Exit Vim by hepek on Tuesday May 23, 2017 @02:48PM (#14404037)
I 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.
Re:Helping a Million Developers Exit Vim by masklinn on Tuesday May 23, 2017 @04:00PM (#14404727)
Technically it's part of the optional "User Portability Utilities" feature group, and so is ex, the only mandatory editor in POSIX is "ed".
Re:Helping a Million Developers Exit Vim by xxs on Tuesday May 23, 2017 @02:42PM (#14403963)
'nano' is fine
Re:Helping a Million Developers Exit Vim by simopaa on Tuesday May 23, 2017 @02:39PM (#14403945)
I switched to nano recently, and it wasn't as easy as it perhaps should have been: https://stackoverflow.com/questions/36802996/bash-nano-comma...
Re:Helping a Million Developers Exit Vim by throwaway2016a on Tuesday May 23, 2017 @03:31PM (#14404439)
In OS X it is vim.