Tim,
I haven't tried your code, yet, but I was wondering about this followup:
Would it be possible to essentially parametrize your command in vimrc, so
that I could do something like this?
/ps/firstword/secondword/distance
I'm using 'ps' for 'proximity search', but if that's already a taken
On 2020-07-25, Adrian Keister wrote:
>
>
> As most people on this forum are likely aware, searching for a word is
> straight-forward enough. If I want to find occurrences of the word 'arc', I
> can type / arc , with spaces around the three letters, to find basic
> occurrences of the word
On 2020-07-25 17:54, Adrian Keister wrote:
> There's an answer on the Stack Exchange site. Does that method work
> also?
That method finds only the case in which you have "aid" *followed by*
"country", so if you have
"This country needs all good men to come to her aid."
it won't find that
Tim,
Many thanks!
There's an answer on the Stack Exchange site. Does that method work also?
Cheers.
On Saturday, July 25, 2020 at 6:42:37 PM UTC-5, Tim Chase wrote:
>
> On 2020-07-25 15:59, Adrian Keister wrote:
> > Now is the time for all good men to come to the aid of their
> > country.
>
On 2020-07-25 15:59, Adrian Keister wrote:
> Now is the time for all good men to come to the aid of their
> country.
>
> In this test, I want to find all occurrences where the word 'aid'
> is within ten words of the word 'country'. How can I do that in Vim?
It's way ugly and requires using the
?
This is cross-posted on Vi and Vim Beta
<https://vi.stackexchange.com/questions/26615/how-can-i-find-where-one-word-is-close-to-another-word>
.
Thanks!
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For