6 ms·
The beauty of vim is that the general paradigm is that you apply an action over a structured motion. For example, 'dib' will delete (d) the current inner block
by orib 18y ago
The beauty of vim is that the general paradigm is that you apply an action over a structured motion. For example, 'dib' will delete (d) the current inner block (ib), and put it into the paste buffer -- wonderful for pulling a block out into a method. Reformatting a paragraph works similarly -- gqap (gq = reflow, ap = a paragraph).
Vim's commands give you a language where you can refer directly to structured entities in your code, rather than being forced to speak in terms of numbers of lines, or cursor positions.
- stevecooperorg 18y agoNow, that sounds pretty nice. This must need language-specific definitions -- a block in python is delimited differently than C, say. What different things can you refer to? I know you can refer to words, lines, characters, buffers, and now blocks. Any other types?