I think i am near the solution now, but it is not already finished.
The best way to begin is maybe to use vnoremap given by Gary Johnson a
few days ago.
vnoremap <silent> * :<C-U>
\let old_reg=getreg('v')<bar>
\let old_regmode=getregtype('v')<cr>
\gv"vy/<C-R><C-R>=substitute(
\escape(@v, '\\/.*$^~[]'), '\n', '\\n', 'g')<cr><cr>zv
\:call setreg('v', old_reg, old_regmode)<cr>
It is ok to search an entire line with: 0v$*.
But i want something more sophisticated.
Then i need something like:
map <F5> v0f('|/)*
but there are problems as i mentionned before:
i want to selection in visual mode from the beginning of the lign, and
to the first character which is ' or / that is find.
I bet that i have to escape /. But i don't know how i can do this.
:he keycodes
suggest me to use <kDivide> but it does not work...
Maybe f is not the recommanded to cut my line... i don't know...
Or maybe i should use something like the script mtc147.vim by Andy
Wokula?
I just need a little bit stream edition on my line, and then i just do
*.
Can you help me?
Best regards,
Mathieu Rouc