Prasad Addagarla

Exploring Technology

Skip to content
  • About
  • SV
  • Power
  • Scripting
  • DFT
  • STA
  • TCL
  • Vi tips
  • Data
  • What’s New
Search

Day: October 29, 2019

How to create your own command or function in Vim that can execute a set of commands

October 29, 2019 / sudhiprasad / Leave a comment

Place the following text in your vim.rc file:

function Myfunc <function name starting with a Capital letter>

<tab>:%s/://g

<tab>:%s/something/another/g

endfunction

Now in your vim file you can do

:call Myfunc()

Welcome

Hello! Welcome to my tech blog.

Categories

  • DFT (27)
  • Digital Design (1)
  • functions (1)
  • Reference (1)
  • Uncategorized (1)
  • vim (5)

Blogroll

  • edaboard

My Blogs

  • ASIC ADDICT

Tags

ATPG BIST DFT DFTAdvisor Digital Design DRC fastscan highlight IDDQ Test lockup latch Memory Mentor Scan search vim

Pages

  • About
  • Scripting
  • STA
    • Command Reference
    • Timing Constraints Tutorial
  • TCL
    • Associative or multi dimenstional arrays in TCL
    • Common Syntax Errors
  • Vi tips
    • Ctags
    • highlight multiple words
    • Setting the backspace key function
    • Use / without \ in a search string
  • What’s New

Blog Stats

  • 41,139 hits
October 2019
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
28293031  
« Jun    
Blog at WordPress.com.
  • Follow Following
    • Prasad Addagarla
    • Already have a WordPress.com account? Log in now.
    • Prasad Addagarla
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar