Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site ur-cvsvax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!rochester!ur-cvsvax!bill From: bill@ur-cvsvax.UUCP (Bill Vaughn) Newsgroups: net.unix Subject: Vi query Message-ID: <220@ur-cvsvax.UUCP> Date: Sat, 31-Aug-85 20:18:36 EDT Article-I.D.: ur-cvsva.220 Posted: Sat Aug 31 20:18:36 1985 Date-Received: Mon, 2-Sep-85 04:20:37 EDT Distribution: net Organization: Center for Visual Science, U. of Rochester Lines: 28 Is there a way in 'vi' to search for the next instance of the word in which the cursor is presently in using, say, a single keystroke (obviously one could use the '/' and enter the word by hand) ? If there is a way to use a named buffer in a search string then it could be done I guess, but from my reading and testing I don't think it's possible to do that. Are there any other possible ways short of hacking 'vi'? Have I missed something obvious? Asssuming I have not, I feel this might be a useful 'feature' to add to 'vi'. Comments? This would be a nice command to have while doing spelling corrections in a file. The following alias puts one into 'vi' with the list of 'misspelled' words appended. The cursor is on the last word. alias sp 'spell \!* >> \!* ; vi + \!*' Now one could hit that magic key, and each word in the list could be quickly found and corrected. When the cursor comes full cycle (using the 'n' command), the word could be deleted and the process repeated until the appended list is exhausted. That is as close to an automatic spelling correcter as I want or need. If you feel that any answers you may have would be useful to everybody on the net, please post. Otherwise just send mail. Bill Vaughn Center for Visual Science UNIV. OF ROCHESTER {allegra,seismo,decvax}!rochester!ur-cvsvax!bill