lambdalisue / jupyter-vim-binding

Jupyter meets Vim. Vimmer will fall in love.
2.1k stars 136 forks source link

Dot command not repeating correct order for autocompletions #119

Closed danijar closed 6 years ago

danijar commented 6 years ago

When typing something that includes automatically closed parens, and repeating the change for a different line using ., the completed parenthesis is misplaced. To replicate:

  1. Select a cell with two empty lines
  2. Go into insert mode
  3. Type: def foo(
  4. The closed parenthesis will be added behind the cursor
  5. Type: bar
  6. Resulting first line: def foo(bar)
  7. Leave insert mode
  8. Press j to navigate onto the next line
  9. Press . to replicate the insertion
  10. Resulting second line: def foo()bar

I think the replay doesn't take the cursor positions into account during replay.

lambdalisue commented 6 years ago

It's probably an issue of CodeMirror while this plugin rely on the fundemental Vim feature of CodeMirror.

danijar commented 6 years ago

Reported the issue there.