After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 746989 - vim: reindent with =
vim: reindent with =
Status: RESOLVED FIXED
Product: gnome-builder
Classification: Other
Component: editor
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: GNOME Builder Maintainers
GNOME Builder Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-03-29 23:25 UTC by Alexandre Franke
Modified: 2016-05-05 16:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
vim: add = for reindent in selection modes (1.20 KB, patch)
2016-05-05 16:05 UTC, Christian Hergert
committed Details | Review
source-view: implement reindent for multi-line selections (4.71 KB, patch)
2016-05-05 16:06 UTC, Christian Hergert
committed Details | Review

Description Alexandre Franke 2015-03-29 23:25:30 UTC
={motion} reindents matching text. == is linewise. {Visual}= reindents selection.

I know code should be auto-indented to start with, but sometimes you add/remove lines which means a change in nesting level, or you copy/paste from a source with different nesting level.
Comment 1 Christian Hergert 2016-05-05 16:05:41 UTC
Created attachment 327357 [details] [review]
vim: add = for reindent in selection modes
Comment 2 Christian Hergert 2016-05-05 16:06:32 UTC
Created attachment 327358 [details] [review]
source-view: implement reindent for multi-line selections

This lets you select multiple lines and reindent them one at a time.
Comment 3 Christian Hergert 2016-05-05 16:06:58 UTC
Attachment 327357 [details] pushed as c4c3ffd - vim: add = for reindent in selection modes
Attachment 327358 [details] pushed as e165684 - source-view: implement reindent for multi-line selections