Almost all are not able to remember all the shortcuts that are available for the vi or vim editor. I will call it vim throughout this article. There are several cheatsheets out there, but the one that works for me is the one provided by rtorr in Github. I use the cheatsheet often. I suggest that you start small. At the very least learn how to navigate in vim. Once you feel comfortable doing that, you can learn other advanced shortcuts such as editing, search and replace, working with multiple files and many much more. I hope you’ll find the cheatsheet as helpful as it has done for me. Again if you missed the link above, I posted it below.
vi
Vi Display Line Numbers
If you work with the vi or vim editors in Linux, sometimes it’s nice to be able to see the line numbers display on the editor.
Turn it on.
vim filename
:set number |
Turn it off.
vim filename
:set nonumber |