Dear All,
I have a problem that I'd been thinking about for some time.
I don't think it can be done.
Nevertheless, I'll post it. When such problems have been posted
in the past, they have generated brisk exchanges and much
corrosive sarcasm. OTOH, if a solution is found, it could be very
useful
At Fri, 11 Oct 2002 21:22:28 +1000, Bill Bennett wrote:
> I use vi as an editing language.
> I'd like a command that would put in the section command and
> capitalize the leading letters of all words in a line that
> are *not* of one, two or three letters. However, the first
> word in the line, re
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 :s/^\(.\)/\U\1/:s/ \([a-z]\)\(\w\{3,}\)/
\U\1\l\2/g:s/^/\\section