On Fri, Oct 11, 2002 at 09:22:28PM +1000, Bill Bennett wrote:
> \section{A Quick Armadillo and a Dead Goat}
> 

A bit tough to do in one go. Assuming your using vim maybe it works in
other clones you can do something like this

map <F2> <ESC>:s/^\(.\)/\U\1/<CR>:s/ \([a-z]\)\(\w\{3,}\)/ 
\U\1\l\2/g<CR>:s/^/\\section{/<CR>:s/$/}/<CR>

Then you just have to hit F2

I'm sure there's a better way

-- 
John
http://www.inodes.org/
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to