Sunday, February 18, 2018

Re: clear register @N

Hum think it was a bad comprehension of event CmdwinEnter

au CmdwinEnter *XPATH :call setreg('n', [])

command! -nargs=1 -bang -complete=customlist,helper#XpathList 
  \ XPATH call helper#XpathNavNode("<bang>", <f-args>)

it seems to have to hit Enter

2018-02-18 18:44 GMT+01:00 Tony Mechelynck <antoine.mechelynck@gmail.com>:
On Sun, Feb 18, 2018 at 6:37 PM, Ni Va <nivaemail@gmail.com> wrote:
> Hi,
>
> I need to clear register @N and i've tried this:
> call setreg('N', [])
>
>
> When I restart vim, register @N is always full.

Register N means "register n, but append rather than replace".

Try
    :let @n = ""

Best regards,
Tony.

--
--
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 a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/Bv_JpCEQZfE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
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/d/optout.

No comments: