Hacker News new | ask | show | jobs
by limaoscarjuliet 3573 days ago
The biggest power of vi for me is about it running on pretty much anything. If it has a keyboard and a screen, it has vi.

While I usually stick to I, A, N+G, Shitf-ZZ and :q! only, I appreciate the effort and keeping vi alive and well.

Big thanks!

2 comments

Here's a useful one:

cnoremap sudow w !sudo tee % >/dev/null

Or from inside your editing session:

:w !sudo tee % > /dev/null

For when you find you've edited a file you don't own (e.g. config file) and forgot to sudo first.

Do yourself a favor and try some plugins. They're awesome.