FG
💻 Software

How to select the currently indented lines in VIM

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

Problem

How I can selected the lines with the same indent? For example: If the cursor is over , how I can selected from to ?

Error Output

if true: 
    line 1
    line 2
    ...
    line n

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 currently indented lines in VIM

Low Risk

Take a look at vim-indent-object.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment