My vim commands
date: 2019-11-27 23:22:40 +0300
Vim is a really powerful editor with huge and easy to remember commands.
Warning! Bad english (I try to learn, so I decide to write some posts in english).
But today I notice that in my daily editing tasks I use only small subset of them.
It's really interesting to me, and I decide to document what I type in my vim.
So, here is my top:
- dd - delete line
- dw - delete to the end of word
- w - move forward by word
- b - move backward by word
- O - insert empty line above current line
- o - insert empty line after current line
- 0 - move to the beginning of the line
- A - move to the end of the line and switch to /insert/ mode
- cw - replace word with another one
- rX - replace char under cursor with char X
It's just ten commands, but I feel very comfortable when I use them.
/posts/