Wednesday, March 8, 2017

Weird rendering issues after grepping some text

In my .vimrc I have the line below, that I use for grepping for word under the cursor:

command! -nargs=+ Grp execute 'grep! -I -r -n --include=*.h --include=*.hpp --include=*.inl --include=*.cpp --include=*.c . -e <args>' | copen | execute 'silent /<args>'

Every time I run this command most part of the code disappears, and to see it I have to scroll down/up until the damaged regions are re-rendered.
Any ideas how to fix this?

Many thanks in advance!
PS. I'm not a vim guru, the command above was copy-pasted ;)

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

Post a Comment