SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

Similar a 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
 

Más de Nihar Ranjan Paital

Más de 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
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
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
vu2urc
 

Último (20)

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...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
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
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
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
 
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
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
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
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
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...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
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...
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
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
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
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
 

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