Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

RE: RE: RE: Editor tricks.

by Petruchio (Vicar)
on Sep 30, 2000 at 13:35 UTC ( [id://34744]=note: print w/replies, xml ) Need Help??


in reply to RE: RE: Editor tricks.
in thread Editor tricks.

nuance: "vi and emacs both have named registers that you can use to store and recall text. I don't know how to use vi but I know they're there."

Hitting the double quote in command mode tells vi that the next letter you enter is going to be the name of the buffer that you'll be refering to. For instance:

"aD

will cut everything from the cursor to the end of the line, and throw it in buffer a. To paste it in again, you'd say:

"ap

The :map command binds a key to a macro... like so:

:map q xp

which will make the q key cut the letter the cursor's presently on and paste it after the next one, effectively transposing them.

Some of the other things you mention make me think. It's about time I went back and learned some more stuff, to make my editing more pleasant. It's easy to just roll along after a certain point, using what you know.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://34744]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-25 14:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found