Skip to content

Allow w,b,e,ge to jump past leading spaces #5

@BertrandSim

Description

@BertrandSim

Suppose I have the following text

{i}ndent0 i[n]dent0
  indent1 indent1
  indent1 indent1

  indent1
  indent1
  indent1
indent0

and the following settings

let g:columnmove_strict_wbege = 0 
let g:columnmove_stop_on_space = 1

With my cursor on [],
<M-e> moves the cursor to the space on line 3. This is the expected behavior, since g:columnmove_stop_on_space = 1.

Now, with my cursor on {},
<M-e> also takes me to line 3.
However, I hope that <M-e> moves the cursor to the second indent 0 on line 8.
That is, I wish to treat leading spaces in the same way as blank lines.

Would it be possible to add an option for this? Maybe g:columnmove_stop_on_leading_space?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions