> This function and its friend PrevDQ() work.
>
> If I am diffing goes to next change, or if doing helpgrep will go to
> the next.
>
> When at the end of the helpgrep, it presents:
> Error detected while processing function NextDQ:
> line 4:
> E553: No more items
> Press ENTER or type command to continue
>
> Can I suppress that message completely?
>
> function! NextDQ()
> if &diff
> normal! ]c
> else
> cn
> if v:version >= 700
> setlocal cursorline
> endif
> endif
> endfun
> nmap <F8> :call NextDQ()<cr>
>
:h sil
regards,
Christian
--
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
No comments:
Post a Comment