← Back to list

GVIM — vi Editer PD -Best practices

Gvim recordg GVIM Visal mode .

Agnathavasi · 2026-06-24 06:19 · 2 claps · 3.5 min read
#gvim #physical-design #vlsi-design #semiconductors #asic-design
Open on Medium ↗

GVIM — vi Editer PD -Best practices

Gvim recordg GVIM Visal mode .

allows to user to select all the charecters in specific continious rows and colomns (this is called as

inc q

#########################################

Fil Management


create, open, save, close/quit To open file there are two ways

  1. vertical split the window :vspl ¿ filename.ext
  2. horizatal split the window (default) :spl ¿filename. ext> create a file outside the gim and open with gvim open gim and when you are saving the file give a name to that file.
How save a file?

*The commands used to save a file :w — write one file wa — write all files :w with<filename>

################## How save a file?

*The commands used to save a file :w — write one file :wa — write all files :w with<filename> Note:if you find a [+] sign after the filename, this file not saved.

How to close/quit the file

*the commands used to quit a file iq quit :wq save and quit :q! quit without saving

To open file there are two ways

  1. vertical split the window
  2. horizatal split the window (default) spl < filename.ext> create a file outside the gim and open with gvim open gvim and when you are saving the file give a name to that file. ################Screen Movements #########

open split screen and movements Ctrl+f → forward movement of cursor pagewise Ctrl+b → backard movement of cursor pagewise

Split screen

Ctrl+w w →To move cursor from one file to other file in split window Ctrl+w + → to resize the split windows

how to quit file or save

:q quit — come ot from the file :wq — save and quite to save goto esc mode :wq! because fine has give alredy and saved :q! quit without saving :wqa save and quit all

###################dish storahe############ du -sh . → show total usuage du -sh * → shows each file size

##############how to quit file or save #######

:q quit — come ot from the file :wq — save and quite to save goto esc mode :wq! because fine has give alredy and saved q! quit without saving

#################### How to close/quit the file *the commands used to quit a file

########################## ‘cc’ — Delete the entire line and insert new text ‘cw’ — Delete the word under the cursor and insert new text ‘c$’ — Delete to the end of the line & insert the new text. ‘Crtl+p’ — ->pool of words only command used in insert mode

##################################################### How to copy ,Paste & Delete a line and words?

*commands to copy a file yy →yanking(copying) one line nyy → copies ’n’ no. of lines (ex: 10yy — 10 lines from the cuser copied ) to paste yy :1,15Y it copies the line 1–15 (command line) yw → to copy single word nyw-> to copy “n” number of words

#######commands to paste########### P — Paste the contents next to curser p → paste the contents below curser np → paste the ’n’ number of times paste — we can use (by clicking center button on curser)

*commands to cut or delete lines and words dd — delete single line or cut one line crl+ r — redo ndd — delete or cut ’n’ number of lines D → delete to the end of the line after the cursor :1,15d → it delete or cut from [1–15] lines(command line) dw — delete a word ndw — delete ’n’ number of words de — delete a worde means end of the word)

############Navigation commands##### *To navigate the cursor without arrows we use h — moving left k — moving up J — moving down i → moving right

example 10h →moves left 10character 10K →moves up for 10lines

w → forward word movement b → backward word movement e → moves to end of the word Ctrl+f → forward movement of cursor pagewise Ctrl+b → backard movement of cursor pagewise G → end of your last line of your file gg → beginning of your first line $ → end of the line 0 →beginning of the line

#########UNDO/REDO Commands########## u →to undo Ctrl+r → to redo

############### Search and replace ################## r-sigle charecter replace s- substitute g — global

search and replace commands :/ - :? —

  • search the word / search the word %s/pattern-to_search/pattern to replace/g %s/pattern-to_search/pattern to replace/gc %s/pattern-to_search/pattern to replace/ line no.s/pattern-to_search/pattern to replace/: lower_range,upper_ranges//pattern-to_search/patern to replace/g: lower_range,upper_ranges//pattern-to_search/patern to replace: crtl+p — — pool of words only command used in insert mode. dw — -> delete the word and move the next word de — -> delete the word s/pattern-to_search/pattern to replace/g:

#############visual mode############ v — visual charecter (selects visual charects) v — visual line mode ctrl+v visual block shift+v — select line visual line insertion charecter wise or word wise gg + shift-V + shift-G m record##############


메타데이터
post_id
9cefae69a050
slug
gvim-vi-editer-pd-best-practices-9cefae69a050
url
https://medium.com/@agnathavasi360/gvim-vi-editer-pd-best-practices-9cefae69a050
canonical_url
https://medium.com/@agnathavasi360/gvim-vi-editer-pd-best-practices-9cefae69a050
author_url
https://medium.com/@agnathavasi360
status
ok
fetched_at
2026-08-19 11:58:21