VIM Metaprogramming : Metaprogramming in VIM scripts
| script karma |
Rating 5/5,
Downloaded by 740 |
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" |
| |
script versions (upload new version)
Click on the package to download.
ip used for rating: 216.73.216.208
|