Monday, January 6, 2014

Doc bug? (was Re: Curious remark about CTRL-V p in cmdline.txt)

On 2014-01-06 12:43, glts wrote:
> I look up :h extension-removal and read this:
>
> > If a "<" is appended to "%", "#", "#n" or "CTRL-V p" the
> > extension of the file name is removed
>
> I have absolutely not the slightest what CTRL-V p might be.

I figured there must be something in the context, but I confirm that
you're the sane one and the docs are a bit wacky there. The only
"CTRL-V p" I was able to find in Vim is when you paste while in
block-wise visual mode (":help v_p"), but that has nothing to do with
filenames, let alone their extensions.

Based on the Mercurial repo, this text has been there since roughly
the original load into Mercurial ("hg blame
vim/src/doc/cmdline.txt"), so I suspect one would have to dig into
the older source archive (I don't remember whether it was CVS or SVN).

My *guess* is that the documentation intends to refer to "<cword>"
and/or "<cfile>", as below your quoted text you find examples of them
where I'd expect to see "CTRL-V p" mentioned.

-tim


--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment