VIM - running a shell command fails within a macro
0
I have a list of items in a file, and I am trying to add an id on the line before each one. The id is generated by an external shell command and added to the buffer: :r !php _setup/getid/php item | tail -1 This works fine in normal mode. However, when I record a macro containing only the above command and then run it I get the error: Could not open input file: _set added to the buffer. Does anyone know what's happening here?
vim shell macros
share | improve this question
asked Nov 23 '18 at 11:28
Simon Brahan
111 2
...