New answers tagged

0

Since the bulk of the action is happening on external commands here, using a shell script is probably most appropriate in this particular case. If you do want to execute this inside Vim, then using the system() function is a great way to execute an external command and get the result into a string. (You can then use trim() to remove the trailing newline. ...


0

There are two ways to approach this. Go heavy on the Vim or do what a rational person would do in the real world: lean heavily on the shell and let it do all the work as that's its strength. Though this is Vi/Vim SE I'm going to be contrarian and show the practical solution. ;) Let's say you use Bash and you want to run exif on all PNG files in a certain ...


Top 50 recent answers are included