In undo – redo I’ve described how to undo and redo changes in a file. By default, the undo stack is deleted when you close a file. However, this can be changed and also the size of the undo stack can be controlled.
Kurt Keller's Blog
tech notes and more
When writing scripts, I prefer to have my comments aligned with the code. However, as I use smartindent, vim always moves me to the first column whenever I start a line with hash. Annoying.
When editing certain files, I want to move to the next paragraph quickly, or I want to delete the remainder of the current paragraph in one go. Luckily there is a move command for this:
The most basic commands to move up and down in vim are j and k. They are fine if you want to move line by line, but not if you want to
You all know how to save and quit a file in vim. I see most people using :wq! every time. I’m not quite happy with this.