RE: how to create a vi macro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Jerin Jacob K
Sent: Wednesday, August 02, 2006 2:41 AM

>I want to create a vi macro for "+y and "+gP commands . and it has to work
on visual mode of vi
>i tried something like this but it is not working
>:map c "+y
>:map v "+gP

I have never heard of the "+y" or "+gP" commands -- what do they do?
I was going to try to find a way to make macros for them, but the first
seems to do nothing
and the second pulls in a cut buffer from last week!?

Maybe the "+" needs to be escaped?  Just guessing....
Also, the "c" key is used, you may want to pick another key.  I am not sure
what is meant by "visual" mode.
When you say visual mode, do you mean the "command" mode, as opposed to the
"insert" mode or ":ex" mode?

Let's see, now I think the "+" goes to first non-whitespace character of
next line, and "y" yanks  how about "j0wy" instead.  And the "+gP" seems to
be doing a put from the yanked buffer but it is confusing.

--
Michael


-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux