Re: [expert] A little vi help

2002-04-20 Thread dfox

> These are good instructions. The only thing you did wrong was to quote
> me in your posting. I did not ask that question but, if memory serves me

Ooops :(.

> J. Craig Woods
> UNIX/NT Network/System Administration
> 




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] A little vi help

2002-04-14 Thread Lyvim Xaphir

On Sun, 2002-04-14 at 13:19, dfox wrote:


> I would first try:
> 
> se wm=6
> 
> That's for setting the wrap margin. I should point out that it should be set
> to the number of characters from the *right* margin. I.e., if you set wm to
> 72, you'll end up with most of your words
> on a new
> line
> like this :)
> 
> 
> If you type a word that would not fit at the wrap margin, vi will 
> automatically move it to the next line.
> 
> If you want to do more complicated formatting within vi, you can use the 
> Q command (at least in vim). Use the Q followed by a movement command, such as 
> } for paragraph, and voila, your paragraph will be formatted for the current 
> wrap margin setting. It won't justify though, but it's good for things like 
> when people can't use their editors and their text is turned into one long 
> line etc.  More complicated things can be done if you pipe your text through 
> to 'fmt' which can even justify the text.
> 
> IIRC that was the 'classic' way to do it before vim came along.

Guess what.  That worked!

(ecstatic happy dance)

Two words... woo and hoo.  Ooops, that's three.  What the hell...

A big thanks to Dfox!  You da man !! Gosh, from what I had read I
thought it would take textwidth and wrapmargin together to make this
work, but...I guess that's baloney.  I do have textwidth set to 0 right
now; is that going to cause some bad effects or shortcomings that I
haven't seen yet?


Thanks again dfox...

LX

-- 
°°°
Kernel  2.4.8-26mdk Mandrake Linux  8.1
Enlightenment 0.16.5Evolution  1.02
Registered Linux User #268899 http://counter.li.org/
°°°


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] A little vi help

2002-04-14 Thread J. Craig Woods

dfox wrote:
> 
> On Tue, 2002-04-09 at 04:46, J. Craig Woods wrote:
> 
> Ok, I've got to ask here about something that's been bugging me cause I
> can't make it happen yet.  I'm trying to set the margin in Vi(m) so that
> the text will wrap with words (at about 70 chars across or so) instead
> of just on a per-letter basis.
> 
> I would first try:
> 
> se wm=6
> 
> That's for setting the wrap margin. I should point out that it should be set
> to the number of characters from the *right* margin. I.e., if you set wm to
> 72, you'll end up with most of your words
> on a new
> line
> like this :)
> 
> If you type a word that would not fit at the wrap margin, vi will
> automatically move it to the next line.
> 
> If you want to do more complicated formatting within vi, you can use the
> Q command (at least in vim). Use the Q followed by a movement command, such as
> } for paragraph, and voila, your paragraph will be formatted for the current
> wrap margin setting. It won't justify though, but it's good for things like
> when people can't use their editors and their text is turned into one long
> line etc.  More complicated things can be done if you pipe your text through
> to 'fmt' which can even justify the text.
> 
> IIRC that was the 'classic' way to do it before vim came along.
> 

These are good instructions. The only thing you did wrong was to quote
me in your posting. I did not ask that question but, if memory serves me
well (not something you can take lightly at my age), I seem to recall
that LX was looking for this info.

There you go, LX

J. Craig Woods
UNIX/NT Network/System Administration

-Art is the illusion of spontaneity-



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] A little vi help

2002-04-14 Thread dfox


On Tue, 2002-04-09 at 04:46, J. Craig Woods wrote:

Ok, I've got to ask here about something that's been bugging me cause I
can't make it happen yet.  I'm trying to set the margin in Vi(m) so that
the text will wrap with words (at about 70 chars across or so) instead
of just on a per-letter basis.


I would first try:

se wm=6

That's for setting the wrap margin. I should point out that it should be set
to the number of characters from the *right* margin. I.e., if you set wm to
72, you'll end up with most of your words
on a new
line
like this :)


If you type a word that would not fit at the wrap margin, vi will 
automatically move it to the next line.

If you want to do more complicated formatting within vi, you can use the 
Q command (at least in vim). Use the Q followed by a movement command, such as 
} for paragraph, and voila, your paragraph will be formatted for the current 
wrap margin setting. It won't justify though, but it's good for things like 
when people can't use their editors and their text is turned into one long 
line etc.  More complicated things can be done if you pipe your text through 
to 'fmt' which can even justify the text.

IIRC that was the 'classic' way to do it before vim came along.





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] A little vi help

2002-04-10 Thread Lyvim Xaphir

On Tue, 2002-04-09 at 04:46, J. Craig Woods wrote:

> Yes, Mike so true. Many, many tools. And the best way to learn them is 
> one at a time. That is why, in my *very* original post, I did not 
> enumerate all the different ways to use the stdout process for different 
> programs i.e. TeX, LaTeX, etc. As you have seen from some very good 
> examples, provided by the list members here, there is always great 
> flexibility in doing what you want to get done in UNIX/Linux. I would 
> only caution you to learn vi as well as you can. Learn the keystrokes, 
> insert mode, search patterns, bringing text in and out, etc. Once you 
> feel good about these vi functions, you can take your data from vi to 
> almost anywhere you want to go. Hey there is a jingo here: "where do you 
> wanna go, today"? Truly, the choices are with us who work in UNIX/Linux.
> 
> The web page I posted on vi is a very simple means for learning some 
> basic vi stuff.

Ok, I've got to ask here about something that's been bugging me cause I
can't make it happen yet.  I'm trying to set the margin in Vi(m) so that
the text will wrap with words (at about 70 chars across or so) instead
of just on a per-letter basis.

I figure if someone else has been using it for word processing stuff
then someone must have an idea of what options to set.

I've played with "wrapmargin" and "textwidth", but so far have not
hitting a winning combination.

Any suggestions?

Thanks,

LX



-- 
°°°
Kernel  2.4.8-26mdk Mandrake Linux  8.1
Enlightenment 0.16.5Evolution  1.02
Registered Linux User #268899 http://counter.li.org/
°°°


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] A little vi help

2002-04-10 Thread Alfredo C. Lopez

Greetings from a guy living in Argentina and a user of vi. 
I  never imagine I could do that with vi.
 I always cut and paste to insert a figure. you give me a lot of 
ideas.. This helper scripts are very cool. 
Even to edit a source code (may be fortran or c or whatever) is very 
usefull. ! May be to create a IF THEN ELSE skeleton to use... 

THANKS!!!
ALF


El Lun 08 Abr 2002 11:51, escribiste:
> Not built in, true, but I do almost all my documentation in vi/TeX. One
> nice thing about vi is that you can filter sections of text through
> external programs, or read directly from the stdout of any program. This
>
> allows me to format a section of text by doing (trivial example):
>  :10,50! fmt
>
> For TeX code I've created a bunch of little helper scripts to do things
> like plug in an image or format columns. E.g.:
>
>
> #/bin/sh
>   # epsinsert
> GEOMETRY=`grep -A1 "% Image geometry" $1|tail -1`
> # echo $GEOMETRY
> WIDTH=`echo $GEOMETRY|cut -d' ' -f1`
> HEIGHT=`echo $GEOMETRY|cut -d' ' -f2`
>
> echo \\begin\{figure\}[label]
> echo \\centering
> echo \\includegraphics[height=${HEIGHT}pt,width=${WIDTH}pt]{$1}
> echo \\caption\{ CAPTION \}
> echo \\label\{label\}
> echo \\end\{figure\}
>
> This can be called with:
>   :r! epsinsert images/somefile.eps




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] A little vi help

2002-04-09 Thread J. Craig Woods

Michael Holt wrote:
>>
> OK, that makes sense.  I'm new to vi but really enjoy the ability to move
> around by keystroke and not have to mess with the mouse.  I was wondering
> if there was a sort of common way the *nix people have done that I haven't
> seen yet; there are so many tools in the *nix world (TeX, LaTeX - I don't
> really know what those things are - yet) Word processors are great, but I
> tend to get a little lost in all the options they offer nowadays and there
> just seems to be something nice about sitting in front of a translucent,
> shaded Eterm window doing my work rather than an ugly gray desktop with
> click-able 'buttons' everywhere that I never can remember which one is
> which and with that I shall 
> 
> Thanks!  Mike :-)

Yes, Mike so true. Many, many tools. And the best way to learn them is 
one at a time. That is why, in my *very* original post, I did not 
enumerate all the different ways to use the stdout process for different 
programs i.e. TeX, LaTeX, etc. As you have seen from some very good 
examples, provided by the list members here, there is always great 
flexibility in doing what you want to get done in UNIX/Linux. I would 
only caution you to learn vi as well as you can. Learn the keystrokes, 
insert mode, search patterns, bringing text in and out, etc. Once you 
feel good about these vi functions, you can take your data from vi to 
almost anywhere you want to go. Hey there is a jingo here: "where do you 
wanna go, today"? Truly, the choices are with us who work in UNIX/Linux.

The web page I posted on vi is a very simple means for learning some 
basic vi stuff.

Dr John,
The night trippin UNIX guy (at least, I try to be)




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] A little vi help

2002-04-08 Thread Michael Holt

On stardate Mon, 8 Apr 2002, [EMAIL PROTECTED] wrote:

>On Mon, 8 Apr 2002, Randy Kramer wrote:
>
>> > Michael Holt wrote:
>> > > I do have
>> > > another question; I've read books that say they've were written using vi
>> > > and I started wondering if you could actually apply fonts and control size
>> > > of fonts as well as italics, bold, etc.  Is that possible?  Does vi have
>> > > something built in that will allow you to format a document?
>>
>> AFAIK (and like J. Craig Woods said) there is nothing built into vi to
>> let you do those kind of things.  I can imagine that someone who writes
>> a book in vi uses one of two approaches (or a combination of the two):
>>
>
>Not built in, true, but I do almost all my documentation in vi/TeX. One
>nice thing about vi is that you can filter sections of text through
>external programs, or read directly from the stdout of any program. This
>allows me to format a section of text by doing (trivial example):
>
> :10,50! fmt
>
>For TeX code I've created a bunch of little helper scripts to do things
>like plug in an image or format columns. E.g.:
>
>
>#/bin/sh
>   # epsinsert
>GEOMETRY=`grep -A1 "% Image geometry" $1|tail -1`
># echo $GEOMETRY
>WIDTH=`echo $GEOMETRY|cut -d' ' -f1`
>HEIGHT=`echo $GEOMETRY|cut -d' ' -f2`
>
>echo \\begin\{figure\}[label]
>echo \\centering
>echo \\includegraphics[height=${HEIGHT}pt,width=${WIDTH}pt]{$1}
>echo \\caption\{ CAPTION \}
>echo \\label\{label\}
>echo \\end\{figure\}
>
>This can be called with:
>  :r! epsinsert images/somefile.eps

OK, that might have just left me a little behind; I'm going to do a search 
on google for tex and I'll get back to you!

Mike :-)

-- 
Michael Holt  
Kirkland, WA   (o_  
[EMAIL PROTECTED](o_  (o_  //\
www.holt-tech.net(/)_ (/)_ V_/_www.mandrake.com
<

  Bad or missing mouse driver. Spank the cat? (Y/N)




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] A little vi help

2002-04-08 Thread Michael Holt

On stardate Mon, 8 Apr 2002, Randy Kramer wrote:

>Date: Mon, 08 Apr 2002 09:30:30 -0400
>From: Randy Kramer <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: [expert] A little vi help
>
>> Michael Holt wrote:
>> > I do have
>> > another question; I've read books that say they've were written using vi
>> > and I started wondering if you could actually apply fonts and control size
>> > of fonts as well as italics, bold, etc.  Is that possible?  Does vi have
>> > something built in that will allow you to format a document?
>
>AFAIK (and like J. Craig Woods said) there is nothing built into vi to
>let you do those kind of things.  I can imagine that someone who writes
>a book in vi uses one of two approaches (or a combination of the two):
>
>   * Use vi to write the book in plain ASCII text, then move the plain
>ASCII text to another application to apply fancy formatting.  (I often
>found this a useful approach even in a word processor, at least until I
>learned to use styles effectively.  Content is the most important thing,
>after you get the content right, then do the formatting, hopefully to
>enhance the meaning and readability of the document.)
>
>   * Use vi to write the book in plain ASCII but add tags (manually or
>semi-automatically using macros or whatever) to support a markup
>language like DocBook, LinuxDoc, HTML, LaTeX, or whatever.  You know the
>tags I mean, things like:
>
>There are ways to run arbitrary Linux or other commands on a (remote)
>web server from your browser by:
>
> creating a cgi script with the desired commands 
>
> using a tool like CGI-Telnet
>
>
>
>To me, this is not a fun approach.
>
>Randy Kramer
>
>
OK, that makes sense.  I'm new to vi but really enjoy the ability to move
around by keystroke and not have to mess with the mouse.  I was wondering
if there was a sort of common way the *nix people have done that I haven't
seen yet; there are so many tools in the *nix world (TeX, LaTeX - I don't
really know what those things are - yet) Word processors are great, but I
tend to get a little lost in all the options they offer nowadays and there
just seems to be something nice about sitting in front of a translucent,
shaded Eterm window doing my work rather than an ugly gray desktop with
click-able 'buttons' everywhere that I never can remember which one is
which and with that I shall 

Thanks!  Mike :-)

-- 
Michael Holt  
Kirkland, WA   (o_  
[EMAIL PROTECTED](o_  (o_  //\
www.holt-tech.net(/)_ (/)_ V_/_www.mandrake.com
<

  Bad or missing mouse driver. Spank the cat? (Y/N)




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] A little vi help

2002-04-08 Thread kwan

On Mon, 8 Apr 2002, Randy Kramer wrote:

> > Michael Holt wrote:
> > > I do have
> > > another question; I've read books that say they've were written using vi
> > > and I started wondering if you could actually apply fonts and control size
> > > of fonts as well as italics, bold, etc.  Is that possible?  Does vi have
> > > something built in that will allow you to format a document?
>
> AFAIK (and like J. Craig Woods said) there is nothing built into vi to
> let you do those kind of things.  I can imagine that someone who writes
> a book in vi uses one of two approaches (or a combination of the two):
>

Not built in, true, but I do almost all my documentation in vi/TeX. One
nice thing about vi is that you can filter sections of text through
external programs, or read directly from the stdout of any program. This
allows me to format a section of text by doing (trivial example):

 :10,50! fmt

For TeX code I've created a bunch of little helper scripts to do things
like plug in an image or format columns. E.g.:


#/bin/sh
# epsinsert
GEOMETRY=`grep -A1 "% Image geometry" $1|tail -1`
# echo $GEOMETRY
WIDTH=`echo $GEOMETRY|cut -d' ' -f1`
HEIGHT=`echo $GEOMETRY|cut -d' ' -f2`

echo \\begin\{figure\}[label]
echo \\centering
echo \\includegraphics[height=${HEIGHT}pt,width=${WIDTH}pt]{$1}
echo \\caption\{ CAPTION \}
echo \\label\{label\}
echo \\end\{figure\}

This can be called with:
  :r! epsinsert images/somefile.eps


>* Use vi to write the book in plain ASCII text, then move the plain
> ASCII text to another application to apply fancy formatting.  (I often
> found this a useful approach even in a word processor, at least until I
> learned to use styles effectively.  Content is the most important thing,
> after you get the content right, then do the formatting, hopefully to
> enhance the meaning and readability of the document.)
>
>* Use vi to write the book in plain ASCII but add tags (manually or
> semi-automatically using macros or whatever) to support a markup
> language like DocBook, LinuxDoc, HTML, LaTeX, or whatever.  You know the
> tags I mean, things like:

Apache has a TeX plugin that allows you to server TeX documents over
HTML. I've been experimenting with it to show equations and it seems
promising.
>
> To me, this is not a fun approach.
>
> Randy Kramer
>
>




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] A little vi help

2002-04-08 Thread Tim Holmes

 
| I did, and thanks to both of you. Mystery solved! I don' use vi improved
| (vim). I guess it is because, as an old timer that has used vi, I don't
| believe you can improve vi :-)
| 
 Dr John

 Depending on what OS revision you're working with, you may be using ViM
 after all.  Check for a symlink.

 I know on current Linux OS' /bin/vi and /bin/vim are linked to the same
 /usr/bin/vim-enhanced.  You may be using ViM after all.

 But I agree.  I was under the impression that it couldn't get any
 better.  Since there are easily 10,000 differnet 'commands' within Vi,
 how could you improve on that.  Then I stumbled across some things that
 ViM does, that Vi doesn't.  So I was finally convinced that ViM was
 improved! :')

 tdh
| (known as the night tripper)
| 

| Want to buy your Pack or Services from MandrakeSoft? 
| Go to http://www.mandrakestore.com

`--- 

-- 
 
 T. Holmes  |  UNIXTECHS.org  |  [EMAIL PROTECTED]  |  UIN:  17021091
 



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] A little vi help

2002-04-08 Thread Randy Kramer

> Michael Holt wrote:
> > I do have
> > another question; I've read books that say they've were written using vi
> > and I started wondering if you could actually apply fonts and control size
> > of fonts as well as italics, bold, etc.  Is that possible?  Does vi have
> > something built in that will allow you to format a document?

AFAIK (and like J. Craig Woods said) there is nothing built into vi to
let you do those kind of things.  I can imagine that someone who writes
a book in vi uses one of two approaches (or a combination of the two):

   * Use vi to write the book in plain ASCII text, then move the plain
ASCII text to another application to apply fancy formatting.  (I often
found this a useful approach even in a word processor, at least until I
learned to use styles effectively.  Content is the most important thing,
after you get the content right, then do the formatting, hopefully to
enhance the meaning and readability of the document.)

   * Use vi to write the book in plain ASCII but add tags (manually or
semi-automatically using macros or whatever) to support a markup
language like DocBook, LinuxDoc, HTML, LaTeX, or whatever.  You know the
tags I mean, things like:

There are ways to run arbitrary Linux or other commands on a (remote)
web server from your browser by:

 creating a cgi script with the desired commands 

 using a tool like CGI-Telnet



To me, this is not a fun approach.

Randy Kramer



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] A little vi help

2002-04-08 Thread Michal 'hramrach' Suchanek


J. C. Woods wrote:

>Michael Holt wrote:
>
>http://www.trismegistus.net/vi_cheatsheets.htm
>
>>I'm not able to pull the page up at this point - try later? I do have
>>another question; I've read books that say they've were written using vi
>>and I started wondering if you could actually apply fonts and control size
>>of fonts as well as italics, bold, etc.  Is that possible?  Does vi have
>>something built in that will allow you to format a document?
>>
>>tia, Mike
>>
>
>Its back up, Mike. Had some strong thunder storms here in the southern
>US so I took my network down to avoid problems.
>
>vi is straight ascii, and you would want to keep things simple with it.
>If you need some fancy fonts or special formating, you would be better
>off with some kind of word processing app.
>
But you can write TeX source with vi which can be converted into a dvi 
or ps file and printed in the form of a nice book (if you got it right ;-).
Of course, if you are a PostScript mage you can write a ps file directly :-D






Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] A little vi help

2002-04-08 Thread J. C. Woods

Michael Holt wrote:
> 
http://www.trismegistus.net/vi_cheatsheets.htm
> 
> I'm not able to pull the page up at this point - try later? I do have
> another question; I've read books that say they've were written using vi
> and I started wondering if you could actually apply fonts and control size
> of fonts as well as italics, bold, etc.  Is that possible?  Does vi have
> something built in that will allow you to format a document?
> 
> tia, Mike

Its back up, Mike. Had some strong thunder storms here in the southern
US so I took my network down to avoid problems.

vi is straight ascii, and you would want to keep things simple with it.
If you need some fancy fonts or special formating, you would be better
off with some kind of word processing app.

-- 
J. Craig Woods
UNIX/NT Network/System Administration

-Art is the illusion of spontaneity-



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] A little vi help

2002-04-07 Thread Michael Holt

On stardate Sat, 6 Apr 2002, J. Craig Woods wrote:

>Fellow Penquinistas,
>
>Because we have had a few threads about the CLI, and because remote file
>editing with vi is such an efficient method, I thought I would share a
>little document that I found, and converted to html. You can view it at
>http://www.trismegistus.net/vi_cheatsheets.htm
>
>If you have any trouble printing it or just want your own copy, email me
>privately (please no HTML mail), specify document type (currently only
>ms word or staroffice 5.2 & 6.0 available), and I will try to respond
>within a reasonable time frame.
>
>Why? Just because I am a nice guy :-)
>
>Have fun,
>Dr John,
>The night tripper

I'm not able to pull the page up at this point - try later? I do have
another question; I've read books that say they've were written using vi
and I started wondering if you could actually apply fonts and control size
of fonts as well as italics, bold, etc.  Is that possible?  Does vi have 
something built in that will allow you to format a document?

tia, Mike  

-- 
Michael Holt  
Kirkland, WA   (o_  
[EMAIL PROTECTED](o_  (o_  //\
www.holt-tech.net(/)_ (/)_ V_/_www.mandrake.com
<

  Bad or missing mouse driver. Spank the cat? (Y/N)




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] A little vi help

2002-04-06 Thread J. Craig Woods

Randy Kramer wrote:
> 
> J. Craig Woods,
> 
> I presume you saw the response from Mike.  Also, I guess I was in vim
> and not vi.
> 
> Randy Kramer
> 
> J. Craig Woods wrote:
> > OK, I'll bite. I can always learn something new, and enjoy it. What is
> > "recording mode" in vi? I know you don't mean insert mode, and I don't
> > think you are talking about the commands for copy and pasting. So do
> > help me out, and let me know what I am missing. It is probably some
> > function I should know..
> 
I did, and thanks to both of you. Mystery solved! I don' use vi improved
(vim). I guess it is because, as an old timer that has used vi, I don't
believe you can improve vi :-)

Dr John
(known as the night tripper)



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] A little vi help

2002-04-06 Thread Randy Kramer

J. Craig Woods,

I presume you saw the response from Mike.  Also, I guess I was in vim
and not vi.  

Randy Kramer

J. Craig Woods wrote:
> OK, I'll bite. I can always learn something new, and enjoy it. What is
> "recording mode" in vi? I know you don't mean insert mode, and I don't
> think you are talking about the commands for copy and pasting. So do
> help me out, and let me know what I am missing. It is probably some
> function I should know..



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] A little vi help

2002-04-06 Thread Randy Kramer

Mike,

Thanks!

Randy Kramer

mike wrote:
> According to http://www.vim.org/html/repeat.html#q
> 
> q{0-9a-zA-Z"}   Record typed characters into register {0-9a-zA-Z"}
> (uppercase to append).  The 'q' command is disabled
> while executing a register, and it doesn't work inside
> a mapping.  {Vi: no recording}





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] A little vi help

2002-04-06 Thread mike

According to http://www.vim.org/html/repeat.html#q

q{0-9a-zA-Z"}   Record typed characters into register {0-9a-zA-Z"}
(uppercase to append).  The 'q' command is disabled
while executing a register, and it doesn't work inside
a mapping.  {Vi: no recording} 

q   Stops recording.  (Implementation note: The 'q' that
stops recording is not stored in the register, unless
it was the result of a mapping)  {Vi: no recording}

All commands and command sequences can be repeated by putting them in a named
register and then executing it.  There are two ways to get the commands in the
register:
- Use the record command "q".  You type the commands once, and while they are
  being executed they are stored in a register.  Easy, because you can see
  what you are doing.  If you make a mistake, "p"ut the register into the
  file, edit the command sequence, and then delete it into the register
  again.  You can continue recording by appending to the register (use an
  uppercase letter).


So, it appears, according to this that you turn recording on by hitting q and 
then a register to put it in, and turn it off by just typing q.  

mg


On Saturday 06 April 2002 14:29, J. Craig Woods wrote:
> Randy Kramer wrote:
> > Thanks, but IIRC, that didn't work for me (that was one of the things
> > that I know I tried).  Sometimes when I was in recording *and* insert
> > mode, one or more s got me back to recording mode only, but did not
> > cancel recording mode.
> >
> > Guess I'll have to try it again next time, except I hope there is no
> > next time. ;-)
>
> OK, I'll bite. I can always learn something new, and enjoy it. What is
> "recording mode" in vi? I know you don't mean insert mode, and I don't
> think you are talking about the commands for copy and pasting. So do
> help me out, and let me know what I am missing. It is probably some
> function I should know..
>
> Thanks,
> J. Craig Woods
> UNIX SA


Content-Type: text/plain; charset="us-ascii"; name="message.footer"
Content-Transfer-Encoding: 8bit
Content-Description: 




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] A little vi help

2002-04-06 Thread J. Craig Woods

Randy Kramer wrote:
> 
> Thanks, but IIRC, that didn't work for me (that was one of the things
> that I know I tried).  Sometimes when I was in recording *and* insert
> mode, one or more s got me back to recording mode only, but did not
> cancel recording mode.
> 
> Guess I'll have to try it again next time, except I hope there is no
> next time. ;-)
> 

OK, I'll bite. I can always learn something new, and enjoy it. What is
"recording mode" in vi? I know you don't mean insert mode, and I don't
think you are talking about the commands for copy and pasting. So do
help me out, and let me know what I am missing. It is probably some
function I should know..

Thanks,
J. Craig Woods
UNIX SA



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] A little vi help

2002-04-06 Thread Randy Kramer

Tim Cruikshank wrote:
> On Saturday 06 April 2002 10:41, you wrote:
> > How do you get in and out of recording mode?  I searched your document
> > for "record" and found nothing.  Just yesterday I jumped into vi (or
> > maybe it was vim?) to do a quick edit and accidentally got into
> > "recording" mode (I presume to record a macro).  Took me quite a while
> > to get out by almost randomly pressing keys.  Not sure how I finally
> > accomplished it.

> Press 

Thanks, but IIRC, that didn't work for me (that was one of the things
that I know I tried).  Sometimes when I was in recording *and* insert
mode, one or more s got me back to recording mode only, but did not
cancel recording mode.

Guess I'll have to try it again next time, except I hope there is no
next time. ;-)

regards,
Randy Kramer



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] A little vi help

2002-04-06 Thread Tim Cruikshank

On Saturday 06 April 2002 10:41, you wrote:

> Question (for anyone):
>
> How do you get in and out of recording mode?  I searched your document
> for "record" and found nothing.  Just yesterday I jumped into vi (or
> maybe it was vim?) to do a quick edit and accidentally got into
> "recording" mode (I presume to record a macro).  Took me quite a while
> to get out by almost randomly pressing keys.  Not sure how I finally
> accomplished it.
>
> Randy Kramer

Press 

-- 
Tim Cruikshank
[EMAIL PROTECTED]



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] A little vi help

2002-04-06 Thread Tim Cruikshank

On Saturday 06 April 2002 05:15, you wrote:
> Fellow Penquinistas,
>
> Because we have had a few threads about the CLI, and because remote file
> editing with vi is such an efficient method, I thought I would share a
> little document that I found, and converted to html. You can view it at
> http://www.trismegistus.net/vi_cheatsheets.htm
>
> If you have any trouble printing it or just want your own copy, email me
> privately (please no HTML mail), specify document type (currently only
> ms word or staroffice 5.2 & 6.0 available), and I will try to respond
> within a reasonable time frame.
>
> Why? Just because I am a nice guy :-)
>
> Have fun,
> Dr John,
> The night tripper

Thanks !!
-- 
Tim Cruikshank
[EMAIL PROTECTED]



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] A little vi help

2002-04-06 Thread Randy Kramer

J. Craig Woods wrote:
> Because we have had a few threads about the CLI, and because remote file
> editing with vi is such an efficient method, I thought I would share a
> little document that I found, and converted to html. You can view it at
> http://www.trismegistus.net/vi_cheatsheets.htm

Dr. John,

Thanks, looks good!  I've linked to it from a WikiLearn page
(http://twiki.org/cgi-bin/view/Wikilearn/Vi).

Question (for anyone):

How do you get in and out of recording mode?  I searched your document
for "record" and found nothing.  Just yesterday I jumped into vi (or
maybe it was vim?) to do a quick edit and accidentally got into
"recording" mode (I presume to record a macro).  Took me quite a while
to get out by almost randomly pressing keys.  Not sure how I finally
accomplished it.

Randy Kramer



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] A little vi help

2002-04-06 Thread Lorne Shantz

EXCELLENT!!! VERY well done Mr. Woods.

"J. Craig Woods" wrote:

> Fellow Penquinistas,
>
> Because we have had a few threads about the CLI, and because remote file
> editing with vi is such an efficient method, I thought I would share a
> little document that I found, and converted to html. You can view it at
> http://www.trismegistus.net/vi_cheatsheets.htm
>
> If you have any trouble printing it or just want your own copy, email me
> privately (please no HTML mail), specify document type (currently only
> ms word or staroffice 5.2 & 6.0 available), and I will try to respond
> within a reasonable time frame.
>
> Why? Just because I am a nice guy :-)
>
> Have fun,
> Dr John,
> The night tripper
>
>   
> Want to buy your Pack or Services from MandrakeSoft?
> Go to http://www.mandrakestore.com

--

Lorne Shantz






Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com