Re "ce", check for closing parenthesis?<div><br></div><div>I have a copy of "The vi User's Handbook."</div><div>AT&T Bell Labs, 1984. Contains a one page</div><div>and four page summary, and a more detailed</div>
<div>look at commands. 66 pages. The best I've</div><div>ever seen for getting up to speed and for</div><div>refreshing your memory if need be. Very well</div><div>laid out.</div><div><br></div><div>I'll make it available for short term loan at the</div>
<div>GRLUG Wednesday meetings if there is any</div><div>interest. I doubt it's still available, but it could</div><div>be scanned.</div><div><br></div><div> -- Bob</div><div><br></div><div><br><div class="gmail_quote">
On Fri, Jun 24, 2011 at 4:23 PM, John-Thomas Richards <span dir="ltr"><<a href="mailto:jtr@jrichards.org">jtr@jrichards.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Fri, Jun 24, 2011 at 03:00:09PM -0400, Bob Kline wrote:<br>
> vim UG?<br>
><br>
> I'm curious, how much of vim do most people actually use?<br>
<br>
</div>Enough to get the job done. :-)<br>
<div class="im"><br>
> I've been using vi for 30 years, and I doubt I use more than two dozen<br>
> commands. I'm guessing that 99% of the work gets done with maybe 5% or<br>
> less of the features of vi - now vim.<br>
<br>
</div>If `v' and 'V' are two separate commands, I guess I use about 50 or so<br>
regularly. That's plenty. I frequently use more obscure (I think)<br>
commands such as `gqap' (paragraph reformatter).<br>
<div class="im"><br>
> * Open and close a file. Maybe close it with :q! if the file has been<br>
> mangled. Maybe write the file out now and then with :w<br>
><br>
> * yy or Nyy to yank a line or lines.<br>
><br>
> * p to put some lines in place.<br>
<br>
</div>Or `P' to paste above the current line. ;-)<br>
<div class="im"><br>
> * a, i, A, and I to add some stuff.<br>
><br>
> * ^ and $ to position at the beginning or end fo a line.<br>
><br>
> * cw or Ncw to change a word or words.<br>
><br>
> * dd, dw, D, x, X, to remove some stuff.<br>
><br>
> * :r file to, well, read in a file at a specific place.<br>
><br>
> * :1,$s/string1/string2/g to replace something everywhere in a file.<br>
><br>
> * / and ? to find something, and n to find another occurrence.<br>
><br>
> Even that much seems to get one a long way. On rare occasions I've<br>
> used buffers, edited multiple files, etc.<br>
><br>
> What other things do people find handy?<br>
<br>
</div>See `gqap' above. It's useful for reformatting an email that is ten<br>
characters wide and 100 lines high. ;-) When I edit LaTeX in kile I<br>
use line wrapping. That really stinks in vim, though, so when I edit<br>
the same file in vim I use this command to insert line breaks for ease<br>
of editing (it makes no difference to LaTeX, however). If I'm doing a<br>
block of paragraphs the ol' `.' repeat command comes in quite handy.<br>
<br>
I also like `ce'.<br>
Guess what it does?<br>
(This is a hint.)<br>
--<br>
john-thomas<br>
------<br>
I place economy among the first and most important republican virtues, and<br>
public debt as the greatest of the dangers to be feared. To preserve our<br>
independence, we must not let our rulers load us with perpetual debt.<br>
Thomas Jefferson, third US president, architect and author (1743-1826)<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">This message has been scanned for viruses and<br>
dangerous content by MailScanner, and is<br>
believed to be clean.<br>
<br>
_______________________________________________<br>
grlug mailing list<br>
<a href="mailto:grlug@grlug.org">grlug@grlug.org</a><br>
<a href="http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug" target="_blank">http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug</a><br>
</div></div></blockquote></div><br></div>
<br />--
<br />This message has been scanned for viruses and
<br />dangerous content by
<a href="http://www.mailscanner.info/"><b>MailScanner</b></a>, and is
<br />believed to be clean.