Hacker News new | ask | show | jobs
by tieTYT 4110 days ago
This is probably misunderstanding the demographic, but why does he suggest using nano over vim?
2 comments

Maybe they just prefer nano?

More likely, if this is meant to be a gentle introduction to the command line, vim is a pretty scary place. Nano works much more like a "normal" text editor.

Until you want to undo something! Nano is definitely more user-friendly though. Some of the engineers I work with still don't know basic vim shortcuts, like 'w' and 'b'
I use a lot of "yw", "d4w", or "dd" ..

are there others life-saving useful as these?

How about find and replace?

:%s/foo/bar/gc

The "gc" will apply the find and replace globally, and ask for confirmation before changing an occurrence of "foo".

knowing my demographic, that's what they prefer. If anyone wants to use vim, I point them to the vim person.