> --
So i tried it... that is great, doing what i want! But of course i
don't know why it works!
You are right, i am guilty, i should have read the beginning of the
file to know how to use it !
I have so many questions:
1) map <F4> :set isk+=#-<Bar>normal *<CR>
Vim's help about "bar" does not allow me to understand what it means.
2) "adjusts the last search pattern set by the star command `*'" ->
what do you mean? * and F4 do different things, right?
3) `\<#foo\>' -> why \< and \>... i really don't understand why you
write it. I want just to find #foo...?
4) You script allow me to do great things. As i said in another
message, i have a long text file divided in small articles, and i want
to move between articles easily with something like hypertext links. I
know how i can do it with html pages; but now i prefer to navigate
easily in my text file with vim.
I would like maybe 3 kinds of links.
a) structure links
b) title links
c) keywords
With your script, you allow me to do c). For exemple, i can move easily
between all articles which have the keywords #sunny-may, for exemple...
One article can be designed like this:
===============================================================
It rains today
/abc/def/ghi/klm
#foo, #bar, #holidays, #mathieu
see also: Good weather today
blablablablabla
jeudi 9 mai 2019
===============================================================
- It rains today is the title
- /abc/def/ghi/klm is the localisation
abc is the part
def is the chapter
ghi is the section
klm is the subsection
When i press F4 (or another touch) when i am on "abc", i want to
navigate between all articles which are in the part "abc".
When i press F4 (or another touch) when i am on "def", i want to
navigate between all articles which are in the chapter "abc/def".
When i press F4 (or another touch) when i am on "ghi", i want to
navigate between all articles which are in the section "abc/def/ghi".
When i press F4 (or another touch) when i am on "klm", i want to
navigate between all articles which are in the subsection
"abc/def/ghi/klm".
That is what i call "structure links" (a).
And as for "title links" (b), i would like that "Good weather today" is
colored in blue, and allow me with Ctrl + ] to go to the article "Good
weather today".
I was suggested to write one tag file, with a script which uses stream
edition, of with ctag, but i don't know it is a good idea.
I don't know how vim's help work.
For exemple, :help mouse gives something, but not every occurence of
mouse is colored is blue. How is it possible?
I know what i want, but i am really in the fog about how i can do it :-
(
Thanks,
Mathieu