by seanp2k2 · 4y ago · 0 comments
:set nu
/ whatever you want to find [return]
i
*edit stuff and use arrow keys for nav*
:wq
Or :q to quit without saving
That’s all the vim most people need.The fact that less is installed on many more systems than nano is a testament to the bad assumptions too many devs make about who will be using these systems in the future. And yes, it’s not hard to "apt -y install nano" except at work where we have proxies and internal repos, so now I need to use vim to reconfigure apt sources just so I can use a more normal editor that doesn’t require arcane incantations to perform basic config file editing.
It's also derailing someone's Show HN with a very old and generic online argument.
Prepare and paste this into your terminal:
echo "another line" | sudo tee -a /etc/apt/sources.list
Sorry for your pain, but choosing hard ways is a person’s business.