Re: Execute command and insert its standard output at the beginning of non-empty line?

2019-09-10 Thread 'Ottavio Caruso' via vim_use
On Tue, 10 Sep 2019 at 12:33, Christian Brabandt wrote: > > > On Di, 10 Sep 2019, 'Ottavio Caruso' via vim_use wrote: > > > 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

Re: Execute command and insert its standard output at the beginning of non-empty line?

2019-09-10 Thread Christian Brabandt
On Di, 10 Sep 2019, 'Ottavio Caruso' via vim_use wrote: > 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

Re: Execute command and insert its standard output at the beginning of non-empty line?

2019-09-10 Thread John Cordes
On Tue, Sep 10, 2019 at 7:32 AM 'Ottavio Caruso' via vim_use mailto:vim_use@googlegroups.com>> wrote: 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,

Execute command and insert its standard output at the beginning of non-empty line?

2019-09-10 Thread 'Ottavio Caruso' via vim_use
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