emacs-evil / emacs-evil/evil

evil-indent-right behaves differently than vim in visual block mode

Open
#772 0 comments 0 reactions 0 assignees View on GitHub
bug major
Dominant language
Emacs Lisp
Stars
3.9k
Forks
307
PR merge metrics
No merged PRs in 30d

Description

`evil-indent-right` (bound to `>`) behaves line-wise during a visual block selection (using `C-v`). For example:

```clj
{offset :- (s/maybe s/Int) 0}
{fields :- [s/Keyword] nil}
{count? :- s/Bool false}
{unique-user-count? :- s/Bool false}
```

If the point is at line 1 on the `:` and I do `C-v j j >`, the first three *lines* are indented, instead of the visually selected block.

I'm using Emacs 25.1.1 on Fedora 25 (x86_64). I installed evil from spacemacs@develop (as of 3072e7277340f1111bbeeed19f3e834bc05513e7).

Contributor guide

Open the contributing guide

Research direction

Start with the evil-indent-right command and reproduce the reported C-v j j > case using the example block. Trace how the visual block selection is interpreted, then verify that only the selected columns change while the surrounding line text remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
emacs-lisp
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.