0% found this document useful (0 votes)
32 views8 pages

KKB Vim Editor

The document discusses the Vim text editor. It describes the three main modes in Vim - Command mode, Insert mode, and Execution mode. Command mode is the default mode where commands can be used but no editing occurs. Insert mode allows editing by adding or deleting text. Execution mode is needed to save files using commands like ":wq". Switching between modes involves using keyboard shortcuts like "i" to enter Insert mode or Esc to exit it.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views8 pages

KKB Vim Editor

The document discusses the Vim text editor. It describes the three main modes in Vim - Command mode, Insert mode, and Execution mode. Command mode is the default mode where commands can be used but no editing occurs. Insert mode allows editing by adding or deleting text. Execution mode is needed to save files using commands like ":wq". Switching between modes involves using keyboard shortcuts like "i" to enter Insert mode or Esc to exit it.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

VIM EDITOR

PRESENTED BY KASHISH AND


NIRMAL
INDEX
 INTRODUCTION .
 TYPES OF MODE IN VIM .
 SWITCHING BETWEEN DIFFERENT TYPES OF MODE .
 COMMAND MODE .
 INSERT MODE .
 EXECUTION MODE .
INTRODUCTIOIN
 VIM IS THE FILE EDITOR WHICH CAN BE USED TO CREATE A FILE
AND EDIT EXISTING FILE .
 IT IS ONLY BE USED IN CLI MODE.
 YOU DON’T NEED TO INSTALL VIM, IT IS PRE-INSTALLED IN
LINUX.
 THE VIM EDITOR IS THE UPDATE VERSION OF VI.
 IT IS INTRODUCED IN THE YEAR 1991 .
 VIM IS AN OPEN SOURCE SOFTWARE .
TYPES OF MODE IN VIM
 THERE ARE THREE TYPES OF MODE IN VIM :
 COMMAND MODE.
 INSERT MODE.
 EXECUTION MODE.
SWITCHING BETWEEN MODES

 C  COMMAND
 I  INSERT
 E  EXECUTION
C  I  PRESS “i” OR “a”
I  C  PRESS “Escape key”
C  E  PRESS “ Shift + : ”
E  C  PRESS “Escape key”

note : “if you want to change in any mode you must be in cmd mode by
pressing escape” .
COMMAND MODE
 THIS IS THE DEFAULT MODE OF VIM EDITOR .
 YOU CANNOT MAKE ANY CHANGE IN THIS MODE .
 WITHOUT COMMAND MODE YOU CANNOT SWITCH BETWEEN MODES .
 COMMANDS THAT WE CAN USE IN THIS MODE :
 TO COPY LINE  yy , 3yy
 TO PASTE LINE  p
 TO DELETE/CUT  dd , 3dd
 TO COPY WORD  yw , 3yw
 TO PASTE  p
INSERT MODE
 THIS IS THE MODE WHERE YOU CAN EDIT .
 YOU CAN ADD LETTERS , WORDS AND LINE .
 YOU CAN DELETE LETTERS , WORDS AND LINE .
 IT IS SAME AS WORD PAD .
EXECUTION MODE
 WITHOUT THIS MODE YOU CANNOT SAVE FILE .
 COMMANDS USED IN EXECUTION MODE :

 wq  FOR SAVE AND QUIT.


 q  FOR QUIT.
 wq!  FORCEFULLY SAVE AND QUIT.

You might also like