I have the following text as a simple case:
... abc xxx 123 456 wer xxx 345 678676 ...
what I need to move a block of text xxx to another location:
... abc 123 xxx 456 wer 345 xxx 678676 ...
I think I use visual mode to block a column of text, what are the other commands to move the block to another location?
In normal mode or in insert mode, press Alt-j to move the current line down, or press Alt-k to move the current line up. After visually selecting a block of lines (for example, by pressing V then moving the cursor down), press Alt-j to move the whole block down, or press Alt-k to move the block up.
Drag the rows or columns to another location. Hold down OPTION and drag the rows or columns to another location. Hold down SHIFT and drag your row or column between existing rows or columns. Excel makes space for the new row or column.
You should use blockwise visual mode (Ctrl+v). Then d to delete block, p or P to paste block.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With