|
|
|
|
|
by lazylester
4716 days ago
|
|
In the video, the author moves a block of code by:
1. going to the start of the code block
2. changing mode to visual
3. moving to the end of the block
4. deleting the block
5. moving to the insertion point
6. inserting the delete buffer I'd like to suggest that using absolute line numbers shortens this considerably. For example :43,48m63 removes lines 43 to 48 and inserts them after line 63 regardless of the current cursor position (no need to move cursor). Not saying relative line numbers are bad, just, there's a quicker way, at least for the demo use case. |
|