Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

W motion error when the computed motion jumps over _any_ Python code #509

Open
kitmonisit opened this issue Jul 5, 2024 · 0 comments
Open

Comments

@kitmonisit
Copy link

I use junegunn/vim-plug manager. Here is my minimum .vimrc. I added a line as advised in #44

set foldmethod=indent
let g:EasyMotion_skipfoldedline = 0

call plug#begin('~/.vim/plugged')
Plug 'easymotion/vim-easymotion'
call plug#end()

Here is a simple Python file for testing convenience:

import this

def test_this():
    print()
    print()
    print()

def test_that():
    print()
    print()
    print()

To reproduce the error:

  1. ❌ Fold the test_this function, put cursor above the folded function, then press <Leader><Leader>w. Error.
  2. ✔️ Put cursor below the folded function, then press <Leader><Leader>w. It works.
  3. ❌ j motion errors out when trying to jump over folds.
  4. ✔️ b motion can jump over folds without any error.
  5. ✔️ k motion can jump over folds without any error.

Strangely though, I have tried "jumping over folds" with my .vimrc and it works very well. I've only observed this in Python.

The error message in the vim status bar is:

EasyMotion: Vim(call):E475: Invalid argument: -1 : function EasyMotion#WB[4]..<SNR>32_EasyMotion, line 109
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant