14 views
Skip to first unread message

dva...@internode.on.net

unread,
Apr 18, 2025, 4:41:50 AMApr 18
to vim...@googlegroups.com
On 18.04.25 09:43, Marc Chantreux wrote:
> On Fri, Apr 18, 2025 at 12:08:56AM -0400, Eli the Bearded wrote:
> > :map * "yyy@y
> this is an old vi trick, vim can just source a range:
> :.so
> > That makes "*" run the line currently under the cursor. In my own files,
> > for my own use, I embed vi commands all the time.
>
> then you lose the awesome "next occurence of the current word" (see :h *, :h #
> and :h g*)

Marc, I took '*' for a placeholder, not a literal, given Eli's evident Vim Fu,
and would likely substitute ^M, as ":h ^M" shows it to be redundant, and it is mnemonic for "make".

Erik


Marc Chantreux

unread,
Apr 18, 2025, 4:53:37 AMApr 18
to dvalin via vim_use
On Fri, Apr 18, 2025 at 08:41:38AM +0000, dvalin via vim_use wrote:
> Marc, I took '*' for a placeholder, not a literal

ohhh … right. I always try to think about what I would have used myself
for those kind of examples so I took it very litterally :)

> and would likely substitute ^M, as ":h ^M" shows it to be redundant, and it is
> mnemonic for "make".

I do use <c-s> to start build commands because <c-s> is often "save" in
many WIMP editors (including libreoffice).

Regards,
--
Marc Chantreux
Reply all
Reply to author
Forward
0 new messages