Vim Tips Wiki
We recommend that you log in before editing. This will allow other users to leave you a message about your edit, and will let you track edits via your Watchlist. Creating an account is quick and free.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 9: Line 9:
 
|version=5.7
 
|version=5.7
 
|rating=8/5
 
|rating=8/5
|category1=
 
|category2=
 
 
}}
 
}}
 
Suppose you want to reverse some text. This mapping will reverse visually selected text. Put the mapping in your vimrc or otherwise source it, then visually select the word or words, and type <code>;rv</code> – really only works with selections on one line:
 
Suppose you want to reverse some text. This mapping will reverse visually selected text. Put the mapping in your vimrc or otherwise source it, then visually select the word or words, and type <code>;rv</code> – really only works with selections on one line:
Please note that all contributions to the Vim Tips Wiki are considered to be released under the CC-BY-SA
Cancel Editing help (opens in new window)