[svlug] Two stupid FAQ questions about VI...
Nick Moffitt
nick at zork.net
Mon Nov 30 16:29:19 PST 1998
On Sun, Nov 29, 1998 at 08:42:41PM -0800, Sam Ockman wrote:
> ....Alright I'm finally learning vi, and I have two questions that I
> can't find an answer to.
>
> 1) What's the equivalent to esq-q in emacs. I.e. I've just mananged
> to mangle a paragraph and need some way to reformat it so all the
> lines end at around 70 characters to the right margin.
gq is the command, followed by movement, such as the period
for the current position. If you're using my config file (which
should still be on antarctica and so forth), it's just Q. See my
config file for more configuration of the margin setup.
> 2) How do I count the number of words in the buffer?
:%!wc -l
--
* Progress (n.): The process through which Usenet has evolved from
smart people in front of dumb terminals to dumb people in front of
smart terminals. -- obs at burnout.demon.co.uk (obscurity)
--
echo "unsubscribe svlug" | mail majordomo at svlug.org
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ to unsubscribe
see http://www.svlug.org/mdstuff/lists.shtml for posting guidelines.
More information about the svlug
mailing list