For example, if I want to run
tidy on a file
r! tidy %
But I have to save the file beforehand. Is there any way around this?
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.Sign up to join this community
@dan-j answer, as stated, replace the lines with the output. To run the file in a shell (without saving) use
:w !tidy or
and thanks @james at this discussion for the answer