Tarlika wrote: > I would like to insert the output of a command at cursor > position (either in normal or insert mode) and map the key > sequence for this. > > before text1 text2 > > after text1 31/12/2009 text2
Use the built-in tools for this: http://vim.wikia.com/wiki/Insert_current_date_or_time > command: :r ! zenity --calendar > > However, the result is always inserted on a new line. Do I > need to copy the date, delete the new line and insert the date > with a second command? Yes, :r works on lines and you would need some trick to insert output in the middle of a line. John --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
