|
|
|
|
|
by throwaway2016a
3716 days 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. |
|