Have had many hats on in my life: Developer, Team Lead, Scrum Master, Architect and Product Owner. Now back to developer \o/ Interested in product discovery, quality assurance and language design.
Have had many hats on in my life: Developer, Team Lead, Scrum Master, Architect and Product Owner. Now back to developer \o/ Interested in product discovery, quality assurance and language design.
Actually I didn't know about :r !{cmd}, so I'm not sure. From a quick test I noticed that :r inserts a newline above the content, while :.! does not. Other than that, dunno ¯\(ツ)/¯.
With :.! you can insert the result of the command into the current buffer (the file you are currently editing).
I just tried it - this is awesome! Does
:.!{cmd}
work exactly the same as:r !{cmd}
then? If not, what's the difference?Actually I didn't know about
:r !{cmd}
, so I'm not sure. From a quick test I noticed that:r
inserts a newline above the content, while:.!
does not. Other than that, dunno ¯\(ツ)/¯.Oh, that's an interesting behavior :) Even a newline makes a difference 😎