sponsor Vim development Vim logo Vim Book Ad

VIM Metaprogramming : Metaprogramming in VIM scripts

 script karma  Rating 5/5, Downloaded by 591  Comments, bugs, improvements  Vim wiki

created by
Sanae Kotiya
 
script type
utility
 
description
VIM scripts can edit themselves, thus we could 'edit', '?', 's', 'source' scripts to create some domain specific language like :

silent! 0,$s/\vFunc\[(.+)\]\{(.+)\}/fun!\1\r\2\rendfun\r/g
Func[Test()]{return 3}

Notice the function is considered one-liner. I hope it is helpful.
 
install details
just "source metarc.vim"
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
metarc.vim 0.01 2011-10-23 7.2 Sanae Kotiya Initial upload
ip used for rating: 3.17.174.239

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github