Hi all,
I have this bash alias:
alias my-date='date +"%A %d %B %Y"'
and this line in vimrc:
set shellcmdflag=-ic
I want to insert (prepend) a timestamp at the beginning of a non-empty
line, without line breaks, but if I type:
:r !my-date
this will print the timestamp on the next line, that is the line below
the cursor.
Is there a way to achieve what I want?
Thanks
--
Ottavio Caruso
--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAEJNuHw_Z9Vop%3DRL5%2BdVsNryX%3Dqm7mP0FoaZqKnvNVw%2BBCBUZw%40mail.gmail.com.
No comments:
Post a Comment