Vim Recall繁體中文

Apply ROT13 to a paragraph

g?ap

Example

Normal 0 / 2
hello world
vim

keep
Cursor on line 1, column 2

Apply ROT13 to a paragraph.

Before & after
Before
hello world
vim

keep
Cursor on line 1, column 2
After
uryyb jbeyq
ivz

keep
Cursor on line 1, column 1

Start in Normal mode, at line 1, column 2 (one-based). A two-character operator followed by a text object applies the transformation to that object. Press g?ap.

Details & Vim help

Example replayed in Vim

A two-character operator followed by a text object applies the transformation to that object.