SlideShare a Scribd company logo
1 of 10
Download to read offline
Project Title
A Presentation on VIM.
uses in Linux system
 What is VIM?
Vim is an open-source text editor designed for working with
programming code in Unix. An enhanced version of the Vi text
editor (also written vi and spoken aloud by enunciating the
two letters individually), Vim was developed by Bram
Moolenaar in 1991. The acronym stands for Vi improved.
 Why use VIM Editor
Vim is Free and Open Source
Vim is Always Available
Vim Is Well Documented
Vim Has A Vibrant Community
Vim Is Very Customizable and Extensible
Vim Has Portable Configurations
Vim Uses Less Amount of System Resources
Vim Supports All Programming Languages and File Formats
Vim is Very Popular in the Linux World
 Modes in VIM
There are two modes in vim. One is the command mode and another is
the insert mode.
• In the command mode, user can move around the file, delete text, etc.
• In the insert mode, user can insert text.
 Changing mode from one to another
• From command mode to insert mode type a/A/i/I/o/O ( see details below)
• From insert mode to command mode type Esc (escape key)
 Some useful commands for VIM
• Text Entry Commands (Used to start text entry)
• a Append text following current cursor position
• A Append text to the end of current line
• i Insert text before the current cursor position
• I Insert text at the beginning of the cursor line
• o Open up a new line following the current line and add text there
• O Open up a new line in front of the current line and add text there
 The following commands are used only in the commands mode.
Cursor Movement Commands
• h Moves the cursor one character to the left
• l Moves the cursor one character to the right
• k Moves the cursor up one line
• j Moves the cursor down one line
• ^F (CTRl F) Forward screenful
• ^B Backward screenful
• ^f One page forward
• ^b One page backward
• ^U Up half screenful
• ^D Down half screenful
• $ Move cursor to the end of current line
• 0 (zero) Move cursor to the beginning of current line
• w Forward one word
• b Backward one word
 Exit Commands
• :wq Write file to disk and quit the editor
• :q! Quit (no warning)
• :q Quit (a warning is printed if a modified file has not been saved)
• ZZ Save workspace and quit the editor (same as :wq)
 Text Deletion Commands
• x Delete character
• dw Delete word from cursor on
• db Delete word backward
• dd Delete line
• d$ Delete to end of line
• d^ (d caret, not CTRL d) Delete to beginning of line
 Yank (copy command)
• yy yank current line
• y$ yank to end of current line from cursor
• yw yank from cursor to end of current word
• 5yy yank, for example, 5 lines
 Paste
• p paste below cursor
• P paste above cursor
• u Undo last change
• U Restore line
• J Join next line down to the end of the current line
 Examples
Opening a New File:
• Step 1 type vim filename (create a file named filename)
• Step 2 type i ( switch to insert mode)
• Step 3 enter text (enter your Ada program)
• Step 4 hit Esc key (switch back to command mode)
• Step 5 type :wq (write file and exit vim)
Editing the Existing File
• Step 1 type vim filename (edit the existing file named filename)
• Step 2 move around the file using h/j/k/l key or any appropriate command
h Moves the cursor one character to the left
l Moves the cursor one character to the right
k Moves the cursor up one line
j Moves the cursor down one line
• Step 3 edit required text (replace or delete or insert)
• Step 4 hit Esc key (exit from insert mode if you insert or replace text)
• Step 5 type :wq
Linux text editors Vim nano

More Related Content

Similar to Linux text editors Vim nano

1_Editors_in_Unix
1_Editors_in_Unix1_Editors_in_Unix
1_Editors_in_UnixGautam Raja
 
Tuffarsi in vim
Tuffarsi in vimTuffarsi in vim
Tuffarsi in vimsambismo
 
Presentacion vim
Presentacion vimPresentacion vim
Presentacion vimIcalia Labs
 
Using VI Editor in Red Hat by Rohit Kumar
Using VI Editor in Red Hat by Rohit KumarUsing VI Editor in Red Hat by Rohit Kumar
Using VI Editor in Red Hat by Rohit KumarRohit Kumar
 
Unit 5 vim an advanced text editor
Unit 5 vim an advanced text editorUnit 5 vim an advanced text editor
Unit 5 vim an advanced text editorroot_fibo
 
Vim Editor And Basic Scripting (Ch-7)
Vim Editor And Basic Scripting (Ch-7)Vim Editor And Basic Scripting (Ch-7)
Vim Editor And Basic Scripting (Ch-7)MohsinHusenManasiya
 
Text editor In RHEL
Text editor In RHELText editor In RHEL
Text editor In RHELVarnnit Jain
 
VI Editors
VI EditorsVI Editors
VI EditorsDeivanai
 
Vi editor commands
Vi editor commandsVi editor commands
Vi editor commandsFemi Adeyemi
 
intro unix/linux 04
intro unix/linux 04intro unix/linux 04
intro unix/linux 04duquoi
 
Augusta Linux User Group - Vim Introduction
Augusta Linux User Group - Vim IntroductionAugusta Linux User Group - Vim Introduction
Augusta Linux User Group - Vim IntroductionKeith Pickett
 

Similar to Linux text editors Vim nano (20)

Vi editor
Vi editorVi editor
Vi editor
 
1_Editors_in_Unix
1_Editors_in_Unix1_Editors_in_Unix
1_Editors_in_Unix
 
Tuffarsi in vim
Tuffarsi in vimTuffarsi in vim
Tuffarsi in vim
 
Presentacion vim
Presentacion vimPresentacion vim
Presentacion vim
 
Using vi editor
Using vi editorUsing vi editor
Using vi editor
 
Using VI Editor in Red Hat by Rohit Kumar
Using VI Editor in Red Hat by Rohit KumarUsing VI Editor in Red Hat by Rohit Kumar
Using VI Editor in Red Hat by Rohit Kumar
 
Unit 5 vim an advanced text editor
Unit 5 vim an advanced text editorUnit 5 vim an advanced text editor
Unit 5 vim an advanced text editor
 
Vim
VimVim
Vim
 
Vim Editor And Basic Scripting (Ch-7)
Vim Editor And Basic Scripting (Ch-7)Vim Editor And Basic Scripting (Ch-7)
Vim Editor And Basic Scripting (Ch-7)
 
Text editor In RHEL
Text editor In RHELText editor In RHEL
Text editor In RHEL
 
Vim Basics
Vim BasicsVim Basics
Vim Basics
 
VI Editors
VI EditorsVI Editors
VI Editors
 
Vi editor
Vi editorVi editor
Vi editor
 
Ms word training
Ms word trainingMs word training
Ms word training
 
Vi editor commands
Vi editor commandsVi editor commands
Vi editor commands
 
Vim survival guide
Vim survival guideVim survival guide
Vim survival guide
 
Vi editor in linux
Vi editor in linuxVi editor in linux
Vi editor in linux
 
Linux basic1&2
Linux basic1&2Linux basic1&2
Linux basic1&2
 
intro unix/linux 04
intro unix/linux 04intro unix/linux 04
intro unix/linux 04
 
Augusta Linux User Group - Vim Introduction
Augusta Linux User Group - Vim IntroductionAugusta Linux User Group - Vim Introduction
Augusta Linux User Group - Vim Introduction
 

More from Md Meherab Hossen

More from Md Meherab Hossen (8)

mail server on linux
mail server on linuxmail server on linux
mail server on linux
 
Daemons in linux processes
Daemons in linux processesDaemons in linux processes
Daemons in linux processes
 
File permission of linux
File permission of linuxFile permission of linux
File permission of linux
 
Linux kickstart
Linux kickstartLinux kickstart
Linux kickstart
 
Linux network manager configuration
Linux network manager configurationLinux network manager configuration
Linux network manager configuration
 
Linux packege manager
Linux packege managerLinux packege manager
Linux packege manager
 
Special permission in linux.
Special permission in linux.Special permission in linux.
Special permission in linux.
 
Install iRedMail on Red Hat Enterprise Linux, CentOS
Install iRedMail on Red Hat Enterprise Linux, CentOSInstall iRedMail on Red Hat Enterprise Linux, CentOS
Install iRedMail on Red Hat Enterprise Linux, CentOS
 

Recently uploaded

Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsAndrey Dotsenko
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 

Recently uploaded (20)

Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 

Linux text editors Vim nano

  • 1. Project Title A Presentation on VIM. uses in Linux system
  • 2.  What is VIM? Vim is an open-source text editor designed for working with programming code in Unix. An enhanced version of the Vi text editor (also written vi and spoken aloud by enunciating the two letters individually), Vim was developed by Bram Moolenaar in 1991. The acronym stands for Vi improved.
  • 3.  Why use VIM Editor Vim is Free and Open Source Vim is Always Available Vim Is Well Documented Vim Has A Vibrant Community Vim Is Very Customizable and Extensible Vim Has Portable Configurations Vim Uses Less Amount of System Resources Vim Supports All Programming Languages and File Formats Vim is Very Popular in the Linux World
  • 4.  Modes in VIM There are two modes in vim. One is the command mode and another is the insert mode. • In the command mode, user can move around the file, delete text, etc. • In the insert mode, user can insert text.  Changing mode from one to another • From command mode to insert mode type a/A/i/I/o/O ( see details below) • From insert mode to command mode type Esc (escape key)
  • 5.  Some useful commands for VIM • Text Entry Commands (Used to start text entry) • a Append text following current cursor position • A Append text to the end of current line • i Insert text before the current cursor position • I Insert text at the beginning of the cursor line • o Open up a new line following the current line and add text there • O Open up a new line in front of the current line and add text there
  • 6.  The following commands are used only in the commands mode. Cursor Movement Commands • h Moves the cursor one character to the left • l Moves the cursor one character to the right • k Moves the cursor up one line • j Moves the cursor down one line • ^F (CTRl F) Forward screenful • ^B Backward screenful • ^f One page forward • ^b One page backward • ^U Up half screenful • ^D Down half screenful • $ Move cursor to the end of current line • 0 (zero) Move cursor to the beginning of current line • w Forward one word • b Backward one word
  • 7.  Exit Commands • :wq Write file to disk and quit the editor • :q! Quit (no warning) • :q Quit (a warning is printed if a modified file has not been saved) • ZZ Save workspace and quit the editor (same as :wq)  Text Deletion Commands • x Delete character • dw Delete word from cursor on • db Delete word backward • dd Delete line • d$ Delete to end of line • d^ (d caret, not CTRL d) Delete to beginning of line
  • 8.  Yank (copy command) • yy yank current line • y$ yank to end of current line from cursor • yw yank from cursor to end of current word • 5yy yank, for example, 5 lines  Paste • p paste below cursor • P paste above cursor • u Undo last change • U Restore line • J Join next line down to the end of the current line
  • 9.  Examples Opening a New File: • Step 1 type vim filename (create a file named filename) • Step 2 type i ( switch to insert mode) • Step 3 enter text (enter your Ada program) • Step 4 hit Esc key (switch back to command mode) • Step 5 type :wq (write file and exit vim) Editing the Existing File • Step 1 type vim filename (edit the existing file named filename) • Step 2 move around the file using h/j/k/l key or any appropriate command h Moves the cursor one character to the left l Moves the cursor one character to the right k Moves the cursor up one line j Moves the cursor down one line • Step 3 edit required text (replace or delete or insert) • Step 4 hit Esc key (exit from insert mode if you insert or replace text) • Step 5 type :wq