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

More Related Content

What's hot

Course 102: Lecture 25: Devices and Device Drivers
Course 102: Lecture 25: Devices and Device Drivers Course 102: Lecture 25: Devices and Device Drivers
Course 102: Lecture 25: Devices and Device Drivers Ahmed El-Arabawy
 
Analyze Virtual Machine Overhead Compared to Bare Metal with Tracing
Analyze Virtual Machine Overhead Compared to Bare Metal with TracingAnalyze Virtual Machine Overhead Compared to Bare Metal with Tracing
Analyze Virtual Machine Overhead Compared to Bare Metal with TracingScyllaDB
 
THE CLR AND THE .NET FRAMEWORK, C#
THE CLR AND THE .NET FRAMEWORK, C#THE CLR AND THE .NET FRAMEWORK, C#
THE CLR AND THE .NET FRAMEWORK, C#MANOJ BURI
 
1 cs xii_python_file_handling text n binary file
1 cs xii_python_file_handling text n binary file1 cs xii_python_file_handling text n binary file
1 cs xii_python_file_handling text n binary fileSanjayKumarMahto1
 
Shell and its types in LINUX
Shell and its types in LINUXShell and its types in LINUX
Shell and its types in LINUXSHUBHA CHATURVEDI
 
Course 102: Lecture 8: Composite Commands
Course 102: Lecture 8: Composite Commands Course 102: Lecture 8: Composite Commands
Course 102: Lecture 8: Composite Commands Ahmed El-Arabawy
 
Introduction to Shell script
Introduction to Shell scriptIntroduction to Shell script
Introduction to Shell scriptBhavesh Padharia
 
Basic commands of linux
Basic commands of linuxBasic commands of linux
Basic commands of linuxshravan saini
 
Disk and File System Management in Linux
Disk and File System Management in LinuxDisk and File System Management in Linux
Disk and File System Management in LinuxHenry Osborne
 
Device Drivers
Device DriversDevice Drivers
Device DriversSuhas S R
 
Course 102: Lecture 13: Regular Expressions
Course 102: Lecture 13: Regular Expressions Course 102: Lecture 13: Regular Expressions
Course 102: Lecture 13: Regular Expressions Ahmed El-Arabawy
 
Practical Malware Analysis: Ch 5: IDA Pro
Practical Malware Analysis: Ch 5: IDA ProPractical Malware Analysis: Ch 5: IDA Pro
Practical Malware Analysis: Ch 5: IDA ProSam Bowne
 
Managing console input and output
Managing console input and outputManaging console input and output
Managing console input and outputgourav kottawar
 
Q2.12: Debugging with GDB
Q2.12: Debugging with GDBQ2.12: Debugging with GDB
Q2.12: Debugging with GDBLinaro
 

What's hot (20)

Course 102: Lecture 25: Devices and Device Drivers
Course 102: Lecture 25: Devices and Device Drivers Course 102: Lecture 25: Devices and Device Drivers
Course 102: Lecture 25: Devices and Device Drivers
 
Unix ppt
Unix pptUnix ppt
Unix ppt
 
Analyze Virtual Machine Overhead Compared to Bare Metal with Tracing
Analyze Virtual Machine Overhead Compared to Bare Metal with TracingAnalyze Virtual Machine Overhead Compared to Bare Metal with Tracing
Analyze Virtual Machine Overhead Compared to Bare Metal with Tracing
 
THE CLR AND THE .NET FRAMEWORK, C#
THE CLR AND THE .NET FRAMEWORK, C#THE CLR AND THE .NET FRAMEWORK, C#
THE CLR AND THE .NET FRAMEWORK, C#
 
1 cs xii_python_file_handling text n binary file
1 cs xii_python_file_handling text n binary file1 cs xii_python_file_handling text n binary file
1 cs xii_python_file_handling text n binary file
 
Shell and its types in LINUX
Shell and its types in LINUXShell and its types in LINUX
Shell and its types in LINUX
 
Shell Scripting
Shell ScriptingShell Scripting
Shell Scripting
 
System Case
System CaseSystem Case
System Case
 
Course 102: Lecture 8: Composite Commands
Course 102: Lecture 8: Composite Commands Course 102: Lecture 8: Composite Commands
Course 102: Lecture 8: Composite Commands
 
Vi editor
Vi editorVi editor
Vi editor
 
Introduction to Shell script
Introduction to Shell scriptIntroduction to Shell script
Introduction to Shell script
 
Basic commands of linux
Basic commands of linuxBasic commands of linux
Basic commands of linux
 
Disk and File System Management in Linux
Disk and File System Management in LinuxDisk and File System Management in Linux
Disk and File System Management in Linux
 
Device Drivers
Device DriversDevice Drivers
Device Drivers
 
Course 102: Lecture 13: Regular Expressions
Course 102: Lecture 13: Regular Expressions Course 102: Lecture 13: Regular Expressions
Course 102: Lecture 13: Regular Expressions
 
Practical Malware Analysis: Ch 5: IDA Pro
Practical Malware Analysis: Ch 5: IDA ProPractical Malware Analysis: Ch 5: IDA Pro
Practical Malware Analysis: Ch 5: IDA Pro
 
Managing console input and output
Managing console input and outputManaging console input and output
Managing console input and output
 
Gnome and kde
Gnome and kdeGnome and kde
Gnome and kde
 
Operating systems
Operating systemsOperating systems
Operating systems
 
Q2.12: Debugging with GDB
Q2.12: Debugging with GDBQ2.12: Debugging with GDB
Q2.12: Debugging with GDB
 

Similar to Linux text editors

Similar to Linux text editors (20)

lectuer 21-22.pptx
lectuer 21-22.pptxlectuer 21-22.pptx
lectuer 21-22.pptx
 
Introduction to vi editor
Introduction to vi editorIntroduction to vi editor
Introduction to vi editor
 
Vi Editor
Vi EditorVi Editor
Vi Editor
 
07 vi text_editor
07 vi text_editor07 vi text_editor
07 vi text_editor
 
Vi editor
Vi   editorVi   editor
Vi editor
 
swl--3 (1).docx
swl--3 (1).docxswl--3 (1).docx
swl--3 (1).docx
 
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
 
Using vi
Using viUsing vi
Using vi
 
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
 

Recently uploaded

"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
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
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
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
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
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 

Recently uploaded (20)

"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...
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
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
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
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
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
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
 
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
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 

Linux text editors

  • 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