HELP converting filenames!

Amos Shapir amos at taux01.UUCP
Tue Oct 10 17:08:45 AEST 1989


Since we are at it, here are some useful macros for spell checking
out of my own grab bag:

(I map them to function keys 1-3; of course you can change it to any
 other unused key)

" Use the 4 letters starting at the cursor as a word to look up
" in the standard 'look' dictionary.
:map #1 4y O!look ^[p"xdd:@x^[

" Run the current file through spell, and put the resulting list of
" misspelled words at the end of the file.
:map #2 :$r!spell %^[

" Now do 'G' and start looking over the list; for each word, either
" do 'dd' if it's irrelevant, or do 'F3' to put the cursor on it.
:map #3 I/\<^[A\>^["xdd:@x^[n

" An 'n' will take you to the next occurrence of the same word.  When
" you're through with it, do a 'G' to look at the next one.

-- 
	Amos Shapir		amos at taux01.nsc.com or amos at nsc.nsc.com
National Semiconductor (Israel) P.O.B. 3007, Herzlia 46104, Israel
Tel. +972 52 522261  TWX: 33691, fax: +972-52-558322
34 48 E / 32 10 N			(My other cpu is a NS32532)



More information about the Comp.unix.wizards mailing list