Thursday, November 1, 2012

How to "filter" a plaintext pattern in a separate fullpage buffer to work on it separately ?

Let us say I have this plaintext file (no code) :

~ Robert is tall
~ Linda is a brunette
~ Dieter who lives in Berlin speaks English fluently
~ Robert is smaller than Linda
~ Dieter said : Speak you Deutsch ?
~ Linda is as blonde as Robert is dark, and, at 5ft 6, much taller than him
etc…

NB : each line is tagged, thanks to a Dictionary (for example : Robert is
tall @RN &Washington), and those tags are highlighted.

In order to verify that there are no errors/contradictions in my text, what
I wish is :
1) to "filter" patterns (e.g. Robert)
2) into a different full-page buffer (not in a window at the bottom of the
screen),
3) where I can suppress the errors/contradictions
4) while keeping the highlightings

The possibilities seem (for a learner) to be :

a) * on the word Robert : satisfies partly 1), 3) and 4) but is not
efficient with a long file
b) :g/Robert/p : satisfies 1) but not 2) (window at the bottom) nor 4) ; as
for 3), I do not know
c) [I : same results as with :g/Robert/p
d) :vimgrep /Robert/ %, then :copen : same results as with :g/Robert/p, with
a new inconvenience : each line is populated with its own path (which is of
course necessary when quickfixing multiple files)

Is there a way to achieve what I wish ?



--
View this message in context: http://vim.1045645.n5.nabble.com/How-to-filter-a-plaintext-pattern-in-a-separate-fullpage-buffer-to-work-on-it-separately-tp5711655.html
Sent from the Vim - General mailing list archive at Nabble.com.

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