Is there an advantage to write these kind of script in perl as supposed to vim-script?
Perl's Regular Expression is easy to write because it implements POSIX. In terms of performance vim-script may be better as calling external process is usually cost.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.