On 2023-11-29, Tom Furie <tom@furie.org.uk> wrote:
gazelle@shell.xmission.com (Kenny McCormack) writes:
In VIM, if you do: :echo 'this is a test' strftime('%c')
you get: this is a test Wed ...
Is there a way to concat without the space?
According to ':h echo' in vim, each expression is printed with a space
between, so it doesn't look like it.
Expressions in Vim can be catenated with the dot operator.
For instance :echo "a" . "b" prints ab for me.
Note: Normally, I would post this (only) to comp.editors, but (at least on
my server) comp.editors is destroyed by the Google spam and is unusable.
So, if you respond (post) to comp.editors (only), I won't see it. I am reading/posting only via the "shell" group.
In VIM, if you do: :echo 'this is a test' strftime('%c')
you get: this is a test Wed ...
I.e., it concats the strings together, but with a space between.
Is there a way to concat without the space?
Note: I would normally try to look this up in the VIM help, but it is hard
to search for stuff related to the basic syntax of the language. What
would you search on?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 493 |
Nodes: | 16 (0 / 16) |
Uptime: | 161:56:29 |
Calls: | 9,700 |
Files: | 13,732 |
Messages: | 6,177,745 |