FG
💻 Software

How can I indent multiple lines, and indent "backwards", in gvim?

Fresh7 days ago
Mar 15, 202619482 views
Confidence Score0%
0%

Problem

I'm just learning vim (via gvim, I used to be a Notepad++ user) and haven't yet found how to do 2 things: How can I indent a set of rows x spaces/tabs right? In Notepad++, for example, I just highlight the rows I need and press 'Tab' key. Also, is there a way to move backwards equivalent to "Shift+…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I indent multiple lines, and indent "backwards", in gvim?

Low Risk

Start at the first line you want to indent, then press > and type the number of lines you want to indent and press > again (for 10 lines you'd press >10>) To un-indent you'd just use < instead of > (<10<)

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment