Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

vim move line down

# 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
Comment

vim move to specific line

# 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
Comment

vim move terminal down

    Ctrl w + R - To rotate windows up/left.

    Ctrl w + r - To rotate windows down/right.
Comment

move a line up/down in vim

noremap <C-Up> ddkP // Moving the line up

noremap <C-Up> ddjP // Moving the line down
Comment

PREVIOUS NEXT
Code Example
Shell :: run sh from terminal mac 
Shell :: unstage staged files git 
Shell :: install curl ubuntu 
Shell :: patch curl 
Shell :: how to change git author 
Shell :: mongodb server stop command in kali linux 
Shell :: docker compose current directory 
Shell :: shell open program 
Shell :: tar extract to folder 
Shell :: install taggit 
Shell :: reset last commit 
Shell :: reduce file size of mp4 using ffmpeg 
Shell :: install postgres ubuntu 
Shell :: setting missing in ubuntu 
Shell :: linux search for a given string in all files recursively 
Shell :: uptime kuma docker compose 
Shell :: renaming a docker container 
Shell :: git move changes to new branch 
Shell :: debian apt log 
Shell :: install rails 
Shell :: echo -e flag 
Shell :: git ssh key linux 
Shell :: top git commands 
Shell :: install laravel globally ubuntu 
Shell :: windows terminal starting directory 
Shell :: ubuntu empty a file 
Shell :: How to import a particular version of uuid 
Shell :: install rancher 
Shell :: array length bash 
Shell :: Ubuntu free ports in use 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =