SlideShare a Scribd company logo
 
The vi editor (short for visual editor) is a screen editor which is available on almost all Unix systems.  vi is a text editor, not a “WYSIWYG" word processor vi has no menus but instead uses combinations of keystrokes in order to accomplish commands.
Lets you add, change, and delete text but does not provide such formatting capabilities as centering lines or indenting paragraphs. Can be used from any type of terminal
At the Unix prompt type  vi  followed by a file name.  vi  filename Then hit  Return . You will see a screen similar to the one below which shows blank lines with tildes and the name and status of the file.  ~ ~ "myfile" [New file]
 
 
Command mode Insert mode
In command mode, the letters of the keyboard perform editing functions. Press escape <Esc> key to enter in command mode.  In insert mode, the letters you type form words and sentences.  Press the alphabet i to enter in insert mode.
 
KEY h   j   k   l   CURSOR MOVEMENT left one space  down one line  up one line  right one space
x     delete character dw     delete word dd     delete line cw     replace a word J     join succeeding line to  current cursor line u     undo last change
w     Forward word by word b     Backward word by word $     To end of line 0     To beginning of line H     to top line of screen  M     to middle line of screen  L     to last line of screen  G     to last line of file
1G     to first line of file  <Control>f     scroll forward one screen  <Control>b     scroll backward one screen <Control>d     scroll down one-half screen <Control>u     scroll up one-half screen
:q or ZZ     save file and then quit  :w    save file :q!     discard changes and quit file  :q     quit
SOME  EXAMPLES
 
 
 
 
 
 
 
 
 
THANK  YOU

More Related Content

PPTX
Vi editor
Er Mittinpreet Singh
 
PPT
Introduction to vi editor
U.P Police
 
PPTX
Vi editor
Ramakrishna kapa
 
PPTX
Vi editor
Nidhi Sharma
 
PPTX
Vim Editor And Basic Scripting (Ch-7)
MohsinHusenManasiya
 
PPTX
VI editor in unix
Ahmed Fayyaz
 
PPT
VI Editors
Deivanai
 
PPT
Vi editor in linux
Bhumivaghasiya
 
Introduction to vi editor
U.P Police
 
Vi editor
Ramakrishna kapa
 
Vi editor
Nidhi Sharma
 
Vim Editor And Basic Scripting (Ch-7)
MohsinHusenManasiya
 
VI editor in unix
Ahmed Fayyaz
 
VI Editors
Deivanai
 
Vi editor in linux
Bhumivaghasiya
 

What's hot (14)

PDF
Vi editor Linux Editors
TONO KURIAKOSE
 
PDF
Linux text editors
InfoExcavator
 
PDF
The "vi" Text Editor
Alessandro Manfredi
 
PDF
Tuffarsi in vim
sambismo
 
PPT
07 vi text_editor
Shay Cohen
 
PPTX
Presentacion vim
Icalia Labs
 
PDF
Vi editor commands
Femi Adeyemi
 
PDF
Productive text editing with Vim
bryanbibat
 
PDF
Vi Editor Cheat Sheet
Loiane Groner
 
PPTX
Vi editor
ParikshitTaksande1
 
PDF
Vim commands
AliviyaSen1
 
PDF
Ms access modules
Ahmed Mounir
 
DOC
Qc document draft
gourabehera
 
PDF
Mail shortcuts
Tian Yang
 
Vi editor Linux Editors
TONO KURIAKOSE
 
Linux text editors
InfoExcavator
 
The "vi" Text Editor
Alessandro Manfredi
 
Tuffarsi in vim
sambismo
 
07 vi text_editor
Shay Cohen
 
Presentacion vim
Icalia Labs
 
Vi editor commands
Femi Adeyemi
 
Productive text editing with Vim
bryanbibat
 
Vi Editor Cheat Sheet
Loiane Groner
 
Vim commands
AliviyaSen1
 
Ms access modules
Ahmed Mounir
 
Qc document draft
gourabehera
 
Mail shortcuts
Tian Yang
 
Ad

Viewers also liked (17)

PDF
Using VI Editor in Red Hat by Rohit Kumar
Rohit Kumar
 
PPTX
Linux files
Geeta Vinnakota
 
PDF
Dma
guest0f0fd2c
 
PDF
Linux Network commands
Hanan Nmr
 
PDF
Vi Editor
Shiwang Kalkhanda
 
PPT
Linux ppt
Rohit Kumar
 
PPT
Linux Troubleshooting
Keith Wright
 
PPTX
File permission in linux
Prakash Poudel
 
ODP
Linux commands
Balakumaran Arunachalam
 
PDF
tybsc it sem 5 Linux administration notes of unit 1,2,3,4,5,6 version 3
WE-IT TUTORIALS
 
PPT
Basic command ppt
Rohit Kumar
 
ODP
Linux Introduction (Commands)
anandvaidya
 
ODP
An Introduction to Linux
anandvaidya
 
PPT
Linux command ppt
kalyanineve
 
PDF
Linux Systems Performance 2016
Brendan Gregg
 
PDF
Linux Networking Explained
Thomas Graf
 
PDF
Linux Profiling at Netflix
Brendan Gregg
 
Using VI Editor in Red Hat by Rohit Kumar
Rohit Kumar
 
Linux files
Geeta Vinnakota
 
Linux Network commands
Hanan Nmr
 
Linux ppt
Rohit Kumar
 
Linux Troubleshooting
Keith Wright
 
File permission in linux
Prakash Poudel
 
Linux commands
Balakumaran Arunachalam
 
tybsc it sem 5 Linux administration notes of unit 1,2,3,4,5,6 version 3
WE-IT TUTORIALS
 
Basic command ppt
Rohit Kumar
 
Linux Introduction (Commands)
anandvaidya
 
An Introduction to Linux
anandvaidya
 
Linux command ppt
kalyanineve
 
Linux Systems Performance 2016
Brendan Gregg
 
Linux Networking Explained
Thomas Graf
 
Linux Profiling at Netflix
Brendan Gregg
 
Ad

Similar to 1359 Vi Editor (20)

PDF
Using vi editor
Rohit Kumar
 
PDF
Vi reference
aireddy
 
PDF
Vi reference
SurenderAireddy
 
PDF
1_Editors_in_Unix
Gautam Raja
 
PPTX
Linux Text Editor (Vi) Command List Summary
minzo1988minzawoo
 
PDF
015-Editing-Files-With-Vi.pdf
ssuser584832
 
PPTX
vim
jebiecorsiga
 
PDF
Vi cheat sheet
Farrukh Salman
 
PDF
Vi cheat sheet
Kopi Maheswaran
 
PPT
intro unix/linux 04
duquoi
 
PPT
Mastering the Linux vi Editor: Essential Commands and Techniques
shlokgupta85
 
PPTX
VI Editor - R.D.Sivakumar
Sivakumar R D .
 
PPTX
Using Vi Editor.pptx
Harsha Patil
 
PPTX
Using Vi Editor.pptx
Harsha Patil
 
PPTX
lectuer 21-22.pptx
poonam256394
 
ODP
Vim
Anuj Jain
 
PDF
Vi cheat sheet
Bijoy Balakrishnan
 
PDF
API TEST
copremesis
 
PDF
Vi Cheat Sheet
Loiane Groner
 
PDF
API TEST
copremesis
 
Using vi editor
Rohit Kumar
 
Vi reference
aireddy
 
Vi reference
SurenderAireddy
 
1_Editors_in_Unix
Gautam Raja
 
Linux Text Editor (Vi) Command List Summary
minzo1988minzawoo
 
015-Editing-Files-With-Vi.pdf
ssuser584832
 
Vi cheat sheet
Farrukh Salman
 
Vi cheat sheet
Kopi Maheswaran
 
intro unix/linux 04
duquoi
 
Mastering the Linux vi Editor: Essential Commands and Techniques
shlokgupta85
 
VI Editor - R.D.Sivakumar
Sivakumar R D .
 
Using Vi Editor.pptx
Harsha Patil
 
Using Vi Editor.pptx
Harsha Patil
 
lectuer 21-22.pptx
poonam256394
 
Vi cheat sheet
Bijoy Balakrishnan
 
API TEST
copremesis
 
Vi Cheat Sheet
Loiane Groner
 
API TEST
copremesis
 

More from techbed (20)

PDF
1456.base boot
techbed
 
PDF
1455.ata atapi standards - 1-7
techbed
 
PDF
1454.ata features
techbed
 
PPT
1432.encoding concepts
techbed
 
PDF
Flash cs4 tutorials_2009
techbed
 
PDF
Photoshop tut
techbed
 
PDF
Part 6 debugging and testing java applications
techbed
 
PDF
Lab 7b) test a web application
techbed
 
PDF
Lab 7a) debug a web application
techbed
 
PDF
What is struts_en
techbed
 
PDF
Part 7 packaging and deployment
techbed
 
PDF
Lab 6) package and deploy a j2 ee application
techbed
 
PDF
Lab 5b) create a java server faces application
techbed
 
PDF
Lab 5a) create a struts application
techbed
 
PDF
First java-server-faces-tutorial-en
techbed
 
PDF
Part 5 running java applications
techbed
 
PDF
Part 4 working with databases
techbed
 
PDF
Part 3 web development
techbed
 
PDF
Lab 4) working with databases
techbed
 
PDF
Lab 3) create a web application
techbed
 
1456.base boot
techbed
 
1455.ata atapi standards - 1-7
techbed
 
1454.ata features
techbed
 
1432.encoding concepts
techbed
 
Flash cs4 tutorials_2009
techbed
 
Photoshop tut
techbed
 
Part 6 debugging and testing java applications
techbed
 
Lab 7b) test a web application
techbed
 
Lab 7a) debug a web application
techbed
 
What is struts_en
techbed
 
Part 7 packaging and deployment
techbed
 
Lab 6) package and deploy a j2 ee application
techbed
 
Lab 5b) create a java server faces application
techbed
 
Lab 5a) create a struts application
techbed
 
First java-server-faces-tutorial-en
techbed
 
Part 5 running java applications
techbed
 
Part 4 working with databases
techbed
 
Part 3 web development
techbed
 
Lab 4) working with databases
techbed
 
Lab 3) create a web application
techbed
 

Recently uploaded (20)

PDF
Biological Classification Class 11th NCERT CBSE NEET.pdf
NehaRohtagi1
 
PPTX
How to Apply for a Job From Odoo 18 Website
Celine George
 
PPTX
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
PPTX
INTESTINALPARASITES OR WORM INFESTATIONS.pptx
PRADEEP ABOTHU
 
PDF
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Nguyen Thanh Tu Collection
 
PPTX
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
PPTX
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
PPTX
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
PPTX
Five Point Someone – Chetan Bhagat | Book Summary & Analysis by Bhupesh Kushwaha
Bhupesh Kushwaha
 
PPTX
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
PPTX
CDH. pptx
AneetaSharma15
 
PPTX
Care of patients with elImination deviation.pptx
AneetaSharma15
 
PPTX
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
PPTX
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
PPTX
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
PDF
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
PPTX
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
PPTX
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
PDF
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
PPTX
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
Biological Classification Class 11th NCERT CBSE NEET.pdf
NehaRohtagi1
 
How to Apply for a Job From Odoo 18 Website
Celine George
 
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
INTESTINALPARASITES OR WORM INFESTATIONS.pptx
PRADEEP ABOTHU
 
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Nguyen Thanh Tu Collection
 
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
Five Point Someone – Chetan Bhagat | Book Summary & Analysis by Bhupesh Kushwaha
Bhupesh Kushwaha
 
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
CDH. pptx
AneetaSharma15
 
Care of patients with elImination deviation.pptx
AneetaSharma15
 
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 

1359 Vi Editor

  • 1.  
  • 2. The vi editor (short for visual editor) is a screen editor which is available on almost all Unix systems. vi is a text editor, not a “WYSIWYG&quot; word processor vi has no menus but instead uses combinations of keystrokes in order to accomplish commands.
  • 3. Lets you add, change, and delete text but does not provide such formatting capabilities as centering lines or indenting paragraphs. Can be used from any type of terminal
  • 4. At the Unix prompt type vi followed by a file name. vi filename Then hit Return . You will see a screen similar to the one below which shows blank lines with tildes and the name and status of the file. ~ ~ &quot;myfile&quot; [New file]
  • 5.  
  • 6.  
  • 8. In command mode, the letters of the keyboard perform editing functions. Press escape <Esc> key to enter in command mode. In insert mode, the letters you type form words and sentences. Press the alphabet i to enter in insert mode.
  • 9.  
  • 10. KEY h  j  k  l  CURSOR MOVEMENT left one space down one line up one line right one space
  • 11. x  delete character dw  delete word dd  delete line cw  replace a word J  join succeeding line to current cursor line u  undo last change
  • 12. w  Forward word by word b  Backward word by word $  To end of line 0  To beginning of line H  to top line of screen M  to middle line of screen L  to last line of screen G  to last line of file
  • 13. 1G  to first line of file <Control>f  scroll forward one screen <Control>b  scroll backward one screen <Control>d  scroll down one-half screen <Control>u  scroll up one-half screen
  • 14. :q or ZZ  save file and then quit :w  save file :q!  discard changes and quit file :q  quit
  • 16.  
  • 17.  
  • 18.  
  • 19.  
  • 20.  
  • 21.  
  • 22.  
  • 23.  
  • 24.