Edit Page
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 90: | Line 90: | ||
<pre> |
<pre> |
||
:r !date /t |
:r !date /t |
||
⚫ | |||
− | |||
− | The above commands insert the output of the <code>date</code> program after the current line. If wanted, the <code>!!</code> command can be used to filter the current line, replacing it with the output of <code>date</code>. |
||
⚫ | |||
− | !!date |
||
− | # Under Windows, use: |
||
− | !!date /t |
||
</pre> |
</pre> |
||
Line 163: | Line 156: | ||
==Comments== |
==Comments== |
||
+ | Type <code>dts</code> in insert mode to expand to a datestamp: {{help|abbreviations}} using an expression {{help|:map-expression}} |
||
⚫ | |||
+ | :iab <expr> dts strftime("%c") |
||
⚫ |