Does anyone know of a way to load the search string in vi without actually typing the search string at the keyboard?
Usually, if I need to search for a long string, I will use the Windows cut and paste functions to avoid having to retype the search argument. But it would be nice if there were a way to "yank" the search argument directly into the search buffer. Ideally, I'd like to be able to be able to position the cursor at my search argument text, then enter "1wyy" to grab the word at the cursor, and follow that with an "n" to find the next occurrence of the word.
I am using vi on SCO 5.0.6. Maybe this is possible in vi on other versions of Unix, but I haven't found a way to do it on SCO.
Any suggestions? Or do I need to switch to a new editor?
Code what you mean,
and mean what you code!
But by all means post your code!
Razalas
Usually, if I need to search for a long string, I will use the Windows cut and paste functions to avoid having to retype the search argument. But it would be nice if there were a way to "yank" the search argument directly into the search buffer. Ideally, I'd like to be able to be able to position the cursor at my search argument text, then enter "1wyy" to grab the word at the cursor, and follow that with an "n" to find the next occurrence of the word.
I am using vi on SCO 5.0.6. Maybe this is possible in vi on other versions of Unix, but I haven't found a way to do it on SCO.
Any suggestions? Or do I need to switch to a new editor?
Code what you mean,
and mean what you code!
But by all means post your code!
Razalas