Vim Recall繁體中文

Uppercase the paragraph

gUap

Example

Normal 0 / 2
one two
three

keep
Cursor on line 1, column 2

Uppercase the paragraph.

Before & after
Before
one two
three

keep
Cursor on line 1, column 2
After
ONE TWO
THREE

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 gUap.

Details & Vim help

Example replayed in Vim

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