On 30.07.15 07:52, Tim Chase wrote:
> So combining those above with your enhancement request, I came up
> with the following function which seems to do what you want:
>
> function! Append_Date(fmt)
> $put=strftime(a:fmt)
> startinsert!
> endfunction
Many thanks Tim. That does it exactly, is half the length of what I
laboriously waded through swamps to cobble together, and doesn't have
lines which don't work as expected.
I'm sure all my helpgrepping and archive diving was good for my soul,
but the syntax which works is in a dialect I don't grok. Looks like I'll
have to try to find out where it fits into the normal/ex/whatever
universe. One day.
Erik
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment