3 ms·
Vim has a lot of key commands to quickly working with blocks of text so it is a bit more nuanced than that. For example, to copy 3 lines from the cursor positi
by throwaway2016a 11y ago
Vim has a lot of key commands to quickly working with blocks of text so it is a bit more nuanced than that.
For example, to copy 3 lines from the cursor position and paste them 5 lines earlier:
3Y
:-5
p
(and there are faster ways, some people are wizards)
I also do relative numbering in my vim (I have the current line labelled as 0, the line above it -1, etc) so that I can move around relative to the cursor without having to count lines. You can also do absolute numbering but I find that tedious when you have large files.
- elcapitan 11y agoI know, I've been using vim pretty exclusively for the last 15 years or so.