Quantcast
Viewing all articles
Browse latest Browse all 3

example of using vim captures

This replaces strings such as:

:src => "images/student2.jpg"

with:

:src => asset_path("student2.jpg")

The vim command is:

:%s/\v"images\/(.*)"/asset_path("\1")/gc

Viewing all articles
Browse latest Browse all 3

Trending Articles