Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

vim delete all lines

:1,$d
Comment

delete all lines in vi

#in command mode
gg #takes you to the first line
dG #deletes all 
Comment

delete whole line in vi

#In vi command mode (press ESC)
dd #Deletes the currently selected line
#To save the document in command mode press shift + ZZ
Comment

how to delete all text inside vi

Esc #set the mode
gg #takes you to the first line
dG #deletes all text in vi 
Comment

PREVIOUS NEXT
Code Example
Shell :: prettier npm 
Shell :: npm install webpack server 
Shell :: powershell help 
Shell :: tar extract command windows 
Shell :: update node with nvm 
Shell :: store environment variables firebase 
Shell :: brew show package info 
Shell :: test ssh connection for github 
Shell :: what is bash 
Shell :: mkdir create all subdirectories 
Shell :: bash read value 
Shell :: git merge tag to branch and squash commits 
Shell :: svelte getting started typescript 
Shell :: change default location screen mac 
Shell :: how to open files using terminal in ubuntu 
Shell :: Bash dir in loop 
Shell :: xampp install in linux fedora 
Shell :: ionic 
Shell :: run sh file 
Shell :: print folder permissions linux 
Shell :: how to check ip addres on manjero 
Shell :: linux while one line command 
Shell :: vpn server setup 
Shell :: debian build with ccache 
Shell :: zsh: command not found: GDAL_LIBRARY_PATH 
Shell :: Exception: No Linux desktop project configured. 
Shell :: git stash retrieve one file 
Shell :: how to install clipman for linux 
Shell :: bash get variable value by variable name 
Shell :: install thefuck 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =