re: Execute command line commands from inside vim VIEW POST


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 😎

code of conduct - report abuse