The Vim editor is like an ocean – wonderful and joyful to be in, but there will always be things you don't know. I am sharing a few tips in this article that will help you use Vim like a pro. I use them regularly and I have seen expert Vim users sharing them in various communities.
Table of contents
1: Always use the built-in help2: Open as normal user, save as root user3: Convert all spaces to tabs and vice-a-versa4: Indent all lines5: Preserve indentation when you paste code6: Start writing with the correct indent depth7: Show diff before saving the file8: Show spelling mistakes9: Show line numbers10: Open Vim with the cursor on a particular line11: Use readable color schemesBonus Tip: Delete text even when you are in Insert modeConclusion2 Comments
Sort: