5.0 - Silly vi tricks, and silly macros
This section is for silly vi tricks, and silly macros. Actually, any
interesting vi tricks and macros are acceptable, as long as they are
not too lengthy. I will add any that are suggested to me that I think
are reasonable.
- xp
- This will delete the character under the cursor, and put it
afterwards. In other words, it swaps the location of two characters.
- ddp
- Similar to xp, but swapping lines.
- uu
- Undo and redo last change. (This will take you to the last
modification to the file without changing anything.)
5.2 - Silly macros
None at the moment, suggest some.
[Index][next][previous]
This HTML version of the vi Faq was compiled by Baruch Promislow of Macom Networking LTD.
(C)opyright, E. Larry Lidz, 1994, 1995. All Rights Reserved.