0% found this document useful (0 votes)
9 views

Gvim Commands

Gvim is a graphical text editor used for editing Verilog, System Verilog, and UVM code, offering more flexibility than other text editors. It features screen splitting, customizable settings via a vimrc file, and two modes: escape and insert, each with specific commands for navigation and editing. Additionally, it supports command line arguments for file management and has a visual block mode for selecting and updating text.

Uploaded by

kmanoharfc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Gvim Commands

Gvim is a graphical text editor used for editing Verilog, System Verilog, and UVM code, offering more flexibility than other text editors. It features screen splitting, customizable settings via a vimrc file, and two modes: escape and insert, each with specific commands for navigation and editing. Additionally, it supports command line arguments for file management and has a visual block mode for selecting and updating text.

Uploaded by

kmanoharfc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

--> Gvim <--

o gvim --> Graphical vi text editor.


o it is used for text editing
o in gvim only we are implementing the verilog, System Verilog & UVM Coding
part.
o already we have diff diff text editors notepad,notepad++,.. etc
o it is more flexibility than other text ediors.

--> Key features of Gvim.


-> we can split the screen into three types
o vertical split
cmd:- :vspl filename.extension
o horizontal split
cmd:- :spl filename.extension
o tabnew
cmd:- :tabnew filename.extension

--> Gvim Vimrc update:-


o vimrc means root configuration file
o cmd:- ~/.vimrc
set hlsearch
set incsearch
set number
set showmode
set autoindent
set tabstop=4
set syntax=ON
set nocompatible
set backspace=indent,eol,start
set guifont=Consolas:h17
syntax on
:
--> GVim Has two modes:-
i. escape mode
ii. insert mode

--> i. Esacpe Mode commads:-


--> cursor is in thick black.
o h :- move the cursor to the left <--
o j :- move the cursor to the down
o k :- move the cursor to up
o l :- move the cursor to right -->
o w :- move the cursor to nxt word starting.
o b :- move to the cursor to the prev word starting.
o 0 :- move the cursor to the starting/begining of the current line
o $ :- move the cursor to the ending of the current line
o gg :- it move the cursor to the stating/1st line of the text document
o G :- it move the cursor to the last_line of the text document
o r :- replace the single character
o R :- replace the multiple characters
o yy :- copy the single line
o p :- paste the line below the cursor
o P :- paste the line above the cursor
o 5yy :- copy the the 5 lines
o 5p :- print/paste for 5 times
o dd :- delete the single line
o D :- from the cursor it will delete end of the line
o u :- undo the latest changes
o ctrl+r :- redo the latest changes
o ctrl+f :-move the cursor forward
o ctrl+b :- move the cursor to backward
o ctrl+a :- increment the number
o ctrl+x :- decrement the number
o ggVG :- select the entire document

--> ii. Insert mode commads:-


--> cursor is in thin black.
o i :- insert the text before the cursor
o I :- insert the text starting of the current line
o a :- insert the text after the cursor
o A :- insert the text end of the current line
o o :- insert a new line bleow the current line
o O :- insert a new line above the current line
o s :- delete a single character under the cursor
o cc :- delete the entire line & moves to insert mode
o cw :- delete the single word
o c$ :- it will delete from the cursor to till end of the line

//--> Command line arguments


o :w :- save a single text doc/single file
o :wa :- save multiple file at a time/save all files
o :q :- quit the file
o :q! :- quit the file recurssively(quit without svae the file).
o :vspl filename.extension
o :spl filename.extension
o :tabnew filename.extension
o :20 :-move the cursor to the 20th line
o for substution
CMD:- 0,$s/old_name/new_name/g
0 :- from the starting or 0th line
$ :- upto last line of the text documnet
s :- search & substution
old_name :- which word u need to change
new_name :- which word u need to update
g :- globally
gc :- globally selected positions only
o /word or ? :- to search a word or chracters.

--> Visual block mode


o press ctrl+v it will enter into the visual block mode
o select where we need to do update by using page up,down,left & right
arrows.
o press "c" to change to the update
o now write wht we need to update.
o finally press "Esc" button to apply the changes

You might also like