Our great sponsors
-
ultisnips
UltiSnips - The ultimate snippet solution for Vim. Send pull requests to SirVer/ultisnips!
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
But the generic way to do something like this would be to use a snippet plugin. UltiSnips https://github.com/SirVer/ultisnips is (probably?) the most popular but there are many of them out there.
I think you're looking for vim-skeletons
Or use phpactor/phpactor with a template to always get it right.
NOTE:
The number of mentions on this list indicates mentions on common posts plus user suggested alternatives.
Hence, a higher number means a more popular project.