# To move a line up
ddkP # delete line -> move up a line -> paste above the current line
# to move a line down
ddP # delete line -> paste above the current line
# to move a line <number> times up
dd<number>kP # delete, move <number> lines up and paste above
# to move a line <number> times down
dd<number>jP # delete, move <number> lines down and paste above
# Basic syntax:
<number>+G # In Vi/Vim, type a number and hold down shift+g
# Example usage:
50G # Moves you to line 50 in the document
Ctrl w + R - To rotate windows up/left.
Ctrl w + r - To rotate windows down/right.
noremap <C-Up> ddkP // Moving the line up
noremap <C-Up> ddjP // Moving the line down