FG
💻 Software

Vim: go to beginning or end of the visual area

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

Problem

I want to do some tricky mappings that wraps currently selected visual area with some code. In order to do that I need to make sure that I am at the beginning of the current visual area. Is there any hotkey for that in visual mode?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Vim: go to beginning or end of the visual area

Low Risk

If I understand correctly, you might be able to use and The tricky bit is that they go to the start/end of the previous visual area, not the current one. So, you could do something like this: In my version of Vim, after using that sequence, the last…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment