Hacker News new | ask | show | jobs
by tensorproduct 4115 days ago
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.

1 comments

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".