Here is a vi ref card: https://www.cheat-sheets.org/saved-copy/vi Reference Card (HP).pdf -- I found a few more but this was the best of the lot (IMHO).
Here is my EXINIT env. var (variations of which I have been using for last 40 years!):
Explanation left as an exercise for the reader!
More useful stuff including vi "tricks" here: http://www.faqs.org/faqs/editor-faq/vi/part1/ - also check out part2.
Here is my EXINIT env. var (variations of which I have been using for last 40 years!):
:se ws ai sm sw=4| map ^K O/*^M *^M*/^[kA |map ^X !}fmt -p 60 61^M|map ^N :tagnext^M|map ^P :tagprev^M
Explanation left as an exercise for the reader!
More useful stuff including vi "tricks" here: http://www.faqs.org/faqs/editor-faq/vi/part1/ - also check out part2.