SlideShare ist ein Scribd-Unternehmen logo
1 von 8
UNIX




  vi Editor



              Presentation By

                        Nihar R Paital
vi Control Mode Commands

   h   Move left one character
   l   Move right one character
   w   Move right one word
   b   Move left one word
   W   Move to beginning of next non-blank word
   B   Move to beginning of preceding non-blank word
   e   Move to end of current word
   E   Move to end of current non-blank word
   0   Move to beginning of line
   ^   Move to first non-blank character in line
   $   Move to end of line                  Nihar R Paital
Vi Control Mode Commands for Searching the History File


   k or -    :Move backward one line
   j or +    :Move forward one line
   G         :Move to line given by repeat count
   ? string :Search backward for string
   / string :Search forward for string
   n         :Repeat search in same direction as
    previous
   N         :Repeat search in opposite direction
    of previous                        Nihar R Paital
Entering and Changing Text

   i Text inserted before current character
    (insert)
   a Text inserted after current character
    (append)
   I Text inserted at beginning of line
   A Text inserted at end of line
   R Text overwrites existing text
   o Text inserted at the next new line.

                                     Nihar R Paital
vi-mode Deletion Commands

   dh Delete one character backwards
   dl Delete one character forwards
   db Delete one word backwards
   dw Delete one word forwards
   dB Delete one non-blank word backwards
   dW Delete one non-blank word forwards
   d$ Delete to end of line
   d0 Delete to beginning of line

                                        Nihar R Paital
Abbreviations for vi-mode Delete Commands


   D Equivalent to d$ (delete to end of line)
   dd Equivalent to 0d$ (delete entire line)
   C Equivalent to c$ (delete to end of line, enter
    input mode)
   cc Equivalent to 0c$ (delete entire line, enter input
    mode)
   X Equivalent to dh (delete character backwards)
   x Equivalent to dl (delete character forwards)


                                             Nihar R Paital
Vi-mode Character-finding Commands

   fx Move right to next occurrence of x
   Fx Move left to previous occurrence of x
   tx Move right to next occurrence of x , then back
    one space
   Tx Move left to previous occurrence of x , then
    forward one space
   ;   Redo last character-finding command
   ,   Redo last character-finding command in
    opposite direction


                                           Nihar R Paital
Thank You!




             Nihar R Paital

Weitere ähnliche Inhalte

Ähnlich wie UNIX - Class2 - vi Editor (6)

API TEST
API TESTAPI TEST
API TEST
 
Vi Cheat Sheet
Vi Cheat SheetVi Cheat Sheet
Vi Cheat Sheet
 
Vi cheat sheet
Vi cheat sheetVi cheat sheet
Vi cheat sheet
 
API TEST
API TESTAPI TEST
API TEST
 
Vi Cheat Sheet v 1 00
Vi Cheat Sheet v 1 00Vi Cheat Sheet v 1 00
Vi Cheat Sheet v 1 00
 
Vi help-sheet-011
Vi help-sheet-011Vi help-sheet-011
Vi help-sheet-011
 

Mehr von Nihar Ranjan Paital

Mehr von Nihar Ranjan Paital (11)

Oracle Select Query
Oracle Select QueryOracle Select Query
Oracle Select Query
 
Useful macros and functions for excel
Useful macros and functions for excelUseful macros and functions for excel
Useful macros and functions for excel
 
Unix - Class7 - awk
Unix - Class7 - awkUnix - Class7 - awk
Unix - Class7 - awk
 
UNIX - Class5 - Advance Shell Scripting-P2
UNIX - Class5 - Advance Shell Scripting-P2UNIX - Class5 - Advance Shell Scripting-P2
UNIX - Class5 - Advance Shell Scripting-P2
 
UNIX - Class3 - Programming Constructs
UNIX - Class3 - Programming ConstructsUNIX - Class3 - Programming Constructs
UNIX - Class3 - Programming Constructs
 
UNIX - Class1 - Basic Shell
UNIX - Class1 - Basic ShellUNIX - Class1 - Basic Shell
UNIX - Class1 - Basic Shell
 
UNIX - Class6 - sed - Detail
UNIX - Class6 - sed - DetailUNIX - Class6 - sed - Detail
UNIX - Class6 - sed - Detail
 
UNIX - Class4 - Advance Shell Scripting-P1
UNIX - Class4 - Advance Shell Scripting-P1UNIX - Class4 - Advance Shell Scripting-P1
UNIX - Class4 - Advance Shell Scripting-P1
 
Test funda
Test fundaTest funda
Test funda
 
Csql for telecom
Csql for telecomCsql for telecom
Csql for telecom
 
Select Operations in CSQL
Select Operations in CSQLSelect Operations in CSQL
Select Operations in CSQL
 

Kürzlich hochgeladen

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Kürzlich hochgeladen (20)

DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
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
 
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...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
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...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 

UNIX - Class2 - vi Editor

  • 1. UNIX vi Editor Presentation By Nihar R Paital
  • 2. vi Control Mode Commands  h Move left one character  l Move right one character  w Move right one word  b Move left one word  W Move to beginning of next non-blank word  B Move to beginning of preceding non-blank word  e Move to end of current word  E Move to end of current non-blank word  0 Move to beginning of line  ^ Move to first non-blank character in line  $ Move to end of line Nihar R Paital
  • 3. Vi Control Mode Commands for Searching the History File  k or - :Move backward one line  j or + :Move forward one line  G :Move to line given by repeat count  ? string :Search backward for string  / string :Search forward for string  n :Repeat search in same direction as previous  N :Repeat search in opposite direction of previous Nihar R Paital
  • 4. Entering and Changing Text  i Text inserted before current character (insert)  a Text inserted after current character (append)  I Text inserted at beginning of line  A Text inserted at end of line  R Text overwrites existing text  o Text inserted at the next new line. Nihar R Paital
  • 5. vi-mode Deletion Commands  dh Delete one character backwards  dl Delete one character forwards  db Delete one word backwards  dw Delete one word forwards  dB Delete one non-blank word backwards  dW Delete one non-blank word forwards  d$ Delete to end of line  d0 Delete to beginning of line Nihar R Paital
  • 6. Abbreviations for vi-mode Delete Commands  D Equivalent to d$ (delete to end of line)  dd Equivalent to 0d$ (delete entire line)  C Equivalent to c$ (delete to end of line, enter input mode)  cc Equivalent to 0c$ (delete entire line, enter input mode)  X Equivalent to dh (delete character backwards)  x Equivalent to dl (delete character forwards) Nihar R Paital
  • 7. Vi-mode Character-finding Commands  fx Move right to next occurrence of x  Fx Move left to previous occurrence of x  tx Move right to next occurrence of x , then back one space  Tx Move left to previous occurrence of x , then forward one space  ; Redo last character-finding command  , Redo last character-finding command in opposite direction Nihar R Paital
  • 8. Thank You! Nihar R Paital