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

Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
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
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
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
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 

Recently uploaded (20)

Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
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
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 

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