vim-columnmove icon indicating copy to clipboard operation
vim-columnmove copied to clipboard

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

Open BertrandSim opened this issue 4 years ago • 0 comments

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?

BertrandSim avatar Jul 05 '21 10:07 BertrandSim