Monday, March 31, 2008

Swaping Two Consecutive Characters in Vim

1. Go to edit mode by pressing Esc (Escape Button).

2. Go to the character which you want to swap with the character following.
Example: Mitseh

3. Press x, then press p. You will find the characters are swapped.
Example: Mitesh

Remembrall: Esc-x-p Transpose (X-Pose) characters

4 comments:

sanjiv said...

this tips was excellent, i got more help for my project :)
plz update this tips daily by this i can learn much & more
Thanx alot

mitesh.singh.jat said...

Thank you for your valuable comment. Sure, I will update regularly.

Nikesh Srivastava said...

This tips by computer science rather i should say linux guru is very valuable for those who is looking for such wonder ful tips on vim. Mitesh keep this doing for to help pepol.

mitesh.singh.jat said...

Thank you Nikesh, that you find the tips useful.