Wednesday, February 5, 2020

Re: Triplicate text after mix-matching vim and nvi

On 2020-02-05 08:38, 'Ottavio Caruso' via vim_use wrote:
> the command works in both vim and nvi. The remap only in vim. I'll
> try to find a way of making it work in nvi, but this would be off
> topic.

Ah, good point. The "<f5>" notation is a vim thing. You can either
use some other key such as "Q"

:map Q :1m$^M

where ^M is entered using control+V followed by control+M

(just tested in the nvi that I have here on FreeBSD)

Alternatively, if you know the escape sequence for the key you want
such as F5, you might be able to enter it literally, escaping with
control+V as above.

(as I type this, your follow-up email arrived where you do just that)

> (BTW: if anybody knows a of a vi/nvi mailing list or usenet group,
> please let me know, on of off list)

I think this list is the closest there is. I regularly use vi/nvi,
vim, and ed(1), and occasionally neovim. I'm sure there are others.
There's enough overlap between vi/nvi and vim/neovim that even if
you're asking questions about vi/nvi here, you'll hopefully get some
good answers. It also helps get relevant answers if you mention that
your question is about vi/nvi instead of vim, so folks don't try to
reply with vim-specific answers.

-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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200205072126.224f67a3%40bigbox.attlocal.net.

No comments: