question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Buffer desync on undo / redo.

See original GitHub issue

I have a critical issue with vscode-neovim.

Sometimes when I hit u to undo changes the buffer gets totally out of sync with what I have in VSCode. When this state is reached, every keystroke becomes dangerous. The more I enter the more I destroy my work. If I hit ctrl+r in order to redo changes the buffer gets further destroyed. I couldn’t find a way to recover my work from this state. The best I could do was closing the buffer, reopen it (this gets the buffer back in sync) and repair the mess. I have lost some work that way multiple times.

This happens on both of my workstations and yet I can’t tell why it happens. I haven’t noticed a pattern or anything. It hits me out of the blue. I get this issue ~ once a day.

This is my init.vscode.vim:

" Copy & Paste / Clipboard setting
" --------------------------------

" set clipboard^=unnamed,unnamedplus
set clipboard=unnamedplus

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
cevncommented, Jun 19, 2020

I just encountered this. It started after I was doing a macro, actually, this was my first experience with the plugin basically. Probably something in my init.vim

0reactions
lithpcommented, Sep 20, 2022

This issue happens with me in v0.0.89, my config is minimal and seems unlikely to be causing the problem (a few nnoremap for navigating between splits, set ignorecase and set smartcase)

I’m not sure what information would be helpful but I’m willing to run experiments or give you debug info you think is important

Read more comments on GitHub >

github_iconTop Results From Across the Web

Buffer desync on undo / redo. · Issue #269 · vscode-neovim ...
I have a critical issue with vscode-neovim. Sometimes when I hit u to undo changes the buffer gets totally out of sync with...
Read more >
Undo and Redo - Callbacks - Imperavi
Triggered when the buffer module method redo is called. $R('#content', { callbacks: { redo: function(html, offset) { // ... } } }); Listen...
Read more >
Lecture 20 Part 4 STEAL / NO FORCE, UNDO and REDO
Buffer Management Plays a key Role. •. Scroll for details ... Lecture 20 Part 4 STEAL / NO FORCE, UNDO and REDO. 11K...
Read more >
Duplicate Buffer~ without noise (for looper undo/redo)
So Im trying to make an undo / redo function for my loopstation. My approach is to use a polybuffer and save a...
Read more >
undo/redo buffer bug - how to increase size/depth
I had a situation today where I was typing in, like 3-4 lines worth and Hit Ctrl-Z expecting to undo the last word...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found