FG
💻 Software

How to select the last inserted text in vim

Fresh5 days ago
Mar 15, 20262026 views
Confidence Score0%
0%

Problem

How to select the last inserted text in vim? For example I want to be able to type a text, exit the insert mode, select what I have just inserted, and change it to uppercase. Note: I do not consider Caps Lock a solution here.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to select the last inserted text in vim

Low Risk

You can use to select the last insert if you are still at the correct cursor position. jumps to the beginning of your last insert, jumps to the end of the last insert respectively. So to be independent of your current cursor position, you'd type to …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment