clear register @N

12 views
Skip to first unread message

Ni Va

unread,
Feb 18, 2018, 12:38:00 PM2/18/18
to vim_use
Hi,

I need to clear register @N and i've tried this:
call setreg('N', [])


When I restart vim, register @N is always full.

Tony Mechelynck

unread,
Feb 18, 2018, 12:44:16 PM2/18/18
to vim...@googlegroups.com
Register N means "register n, but append rather than replace".

Try
:let @n = ""

Best regards,
Tony.

Ni Va

unread,
Feb 18, 2018, 1:05:27 PM2/18/18
to vim...@googlegroups.com
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


--
--
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.

Ni Va

unread,
Feb 18, 2018, 1:38:02 PM2/18/18
to vim...@googlegroups.com
Sorry I want to use Cmdlineenter on particular command :XPATH, but don't happen to.
Reply all
Reply to author
Forward
0 new messages