3 ms·
Ah, but that only writes the file once. Heredocs can write a new file, in a different position and with different variable replacements, as many times as you li
by dtgriscom 5y ago
Ah, but that only writes the file once. Heredocs can write a new file, in a different position and with different variable replacements, as many times as you like. Very powerful.
- yakshaving_jgt 5y agoI’m not sure I follow. It’s pretty straightforward to write the contents of a vim buffer to a file.