News for hackers. Stuff that matters.
Re:GNU Nano 6.3 by newswasboring on Thursday April 28, 2022 @12:39PM (#31194736)
Honestly the main reason seems to be that it looks less intimidating. Open vi and no help is offered in terms of commands, it's just an empty screen. Same for Emacs i think. Nano looks like something built for humans.
Re:GNU Nano 6.3 by soraminazuki on Thursday April 28, 2022 @02:17PM (#31196134)
This is the greeting text that is displayed when you launch Vim [1]:

    VIM - Vi IMproved
    
    version 8.2.4133
    by Bram Moolenaar et al.
    
    Vim is open source and freely distributable
    
    Help poor children in Uganda!
    type  :help iccf<Enter>       for information 
    
    type  :q<Enter>               to exit         
    type  :help<Enter>  or  <F1>  for on-line help
    type  :help version8<Enter>   for version info
    
    Running in Vi compatible mode
    type  :set nocp<Enter>        for Vim defaults
    type  :help cp-default<Enter> for info on this
"No help offered" or "just an empty screen" is not how I would describe the above text.

[1]: https://github.com/vim/vim/blob/a96edb736d4274fc4aea46080078...

Re:GNU Nano 6.3 by onei on Thursday April 28, 2022 @02:34PM (#31196395)
Most of the time I've seen people get stuck in vim is when they use "git commit" which opens up whatever you have $EDITOR set to. The default value in most distros I've used in vim/vi and I can't recall seeing usage help in that scenario.
Re:GNU Nano 6.3 by dEnigma on Thursday April 28, 2022 @03:09PM (#31196866)
I voiced my strong support when they changed the standard git editor on my distro from vim to nano. While I'm still playing with the thought of really getting into vim and/or emacs at some point, nano is just a much simpler, more familiar type of editor. Seems like a lot of other people also felt that way. Depending on your user base it might make sense to stick to vim though, in case you'd disappoint your more technical/unixy users.
Re:GNU Nano 6.3 by adamomada on Thursday April 28, 2022 @04:04PM (#31197528)
I’ve always had the idea that EDITOR should be on the same level as the login shell on nix systems. Choose your shell and your editor when creating your account, or don’t complain about the defaults
Re:GNU Nano 6.3 by Anthony-G on Thursday April 28, 2022 @04:29PM (#31197811)
I agree but I’ve found that a lot of users don’t know they can set EDITOR in their shell profile – or that the `chsh` command exists to let them change their login shell.
Re:GNU Nano 6.3 by adamomada on Thursday April 28, 2022 @04:41PM (#31197951)
Yeah the “create your account” part of the install should expose a few more settings such as the above, or perhaps a more generic “user account settings” pane in the major DEs to show the most common environment configurations for user accounts
Re:GNU Nano 6.3 by onei on Thursday April 28, 2022 @06:01PM (#31198743)
I am one of those that didn't know chsh was a thing - thanks for the tip!
Re:GNU Nano 6.3 by soraminazuki on Thursday April 28, 2022 @02:54PM (#31196673)
True, but at least it points you to the :help command at the beginning of its man page and pressing ctrl-c tells you how you can quit.
Re:GNU Nano 6.3 by alpaca128 on Thursday April 28, 2022 @04:38PM (#31197924)
As a Vim user I agree. People who don't know about this environment variable might also not be very familiar with Vim. It helps nobody to surprise people like that.

Also I like to use Vim's terminal buffer, and it turns out accidentally starting Vim inside Vim rarely leads to satisfying results.

Re:GNU Nano 6.3 by AlchemistCamp on Thursday April 28, 2022 @03:08PM (#31196846)
What distros do you use? One of my ongoing irritations with Ubuntu is that the default editor is not VIM.
Re:GNU Nano 6.3 by onei on Thursday April 28, 2022 @05:59PM (#31198732)
Y'know, now that you mention it, I don't recall changing the default editor in Ubuntu. I think I first noticed vi or vim as the default editor in Fedora around 6 years ago, and maybe also in git bash on Windows. Beyond that, my memory is hazy, but I think vi or vim is the default in Debian and RHEL/CentOS, but I wouldn't put money on it.
Re:GNU Nano 6.3 by kevin_thibedeau on Thursday April 28, 2022 @03:54PM (#31197402)
Just change it to what you want.
Re:GNU Nano 6.3 by AlchemistCamp on Thursday April 28, 2022 @06:22PM (#31198945)
I do... every time :)
Re:GNU Nano 6.3 by vimacs2 on Thursday April 28, 2022 @02:32PM (#31196361)
OP was specifically referencing vi, not vim
Re:GNU Nano 6.3 by marssaxman on Friday April 29, 2022 @06:33PM (#31211383)
I have ended up in vim by accident on quite a number of occasions over the last few decades, but I have never seen the quoted text. Perhaps it is something you only see if you are trying to use vim on purpose?
Re:GNU Nano 6.3 by bc4m on Thursday April 28, 2022 @03:11PM (#31196897)
The Emacs welcome screen links to a tutorial, a guided tour, and manual, all of which are inside Emacs. I would say its help functionality is potentially its greatest strength.
Re:GNU Nano 6.3 by newswasboring on Thursday April 28, 2022 @11:33PM (#31201093)
Right, but when nano first opened for me, I didn't need a help or manual. That's what I mean by it feeling like it was made for humans.