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

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: [OT(?)] Ubuntu 18 now defaults to 4-space tabs

2019-09-10 Thread Marvin Renich
* Tobiah [190910 03:01]: > We upgraded a server to 18.04 and now when I start typing > a python file (seems to be triggered by the .py extension) > the tabs default to 4 spaces. We have decades of code that > use tab characters, and it has not been our intention to > change that. > > I found a

Re: [OT(?)] Ubuntu 18 now defaults to 4-space tabs

2019-09-10 Thread Markus Osterhoff
* Marvin Renich [190910 14:56]: > My opinion is that the defaults.vim file should only set options that > almost all vim users will want, and should stay completely away from > options that are "personal taste" (i.e. leave them with the vim internal > default settings). The most noticeable

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,

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

[OT(?)] Ubuntu 18 now defaults to 4-space tabs

2019-09-10 Thread Tobiah
We upgraded a server to 18.04 and now when I start typing a python file (seems to be triggered by the .py extension) the tabs default to 4 spaces. We have decades of code that use tab characters, and it has not been our intention to change that. I found a /usr/share/vim/vim80/indent/python.vim