Hacker News new | ask | show | jobs
by melvinroest 2150 days ago
When vi or vim opens for the first time, it should simply state 2 things:

- New to vi(m)? Close the editor by typing :q!

- Learn vi(m) by running the following program: vimtutor

2 comments

Vim effectively does that with its splash screen:

                  VIM - Vi IMproved

                   version 8.2.814
               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

The problem is that a total noob will still be overwhelmed, Vim's UI is simply too different from modern UI conventions.

That's why I think it makes total sense for nano to be the default editor in this day and age, even it if means that I'll have to remember to set EDITOR properly if I want to use vi(m).

I think that's way too much information and agree that new users will feel overwhelmed.
This doesn't fix the problem. If it's a newbie, they should be given Nano. They probably just want to get the job done, whatever it may be. It shouldn't be assumed that now is the time for them to learn Vim (which is no small thing). Neither should it be assumed that quitting Vim solves the problem. They might not know how to reconfigure the default editor that some other program is using, for instance.