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.

Cursor jumping to another split in Vim

See original GitHub issue

Basically, the cursor in Vim jumps to another window when I start typing. I go into INSERT mode and start typing and just after typing a few characters the cursor jumps to the other split.

Here’s a gif of how it happens: error

I already tried to trace what could have caused this problem by doing tests in my .vimrc, but the only thing I could conclude was that it could be a problem in coc-clangd. Although I don’t have much knowledge in the area, I’m still willing to contribute to solving the problem.

Some information I think is useful:

## versions

vim version: VIM - Vi IMproved 9.0 9000910
node version: v19.1.0
coc.nvim version: 0.0.82-f9bfe5dc 2022-11-25 05:42:48 +0800
coc.nvim directory: /home/icaro/.vim/plugged/coc.nvim
term: dumb
platform: linux

## Log of coc.nvim

2022-11-25T13:19:41.987 INFO (pid:44182) [plugin] - coc.nvim initialized with node: v19.1.0 after 179
2022-11-25T13:19:44.126 INFO (pid:44182) [attach] - receive notification: showInfo []
2022-11-25T13:19:44.504 INFO (pid:44182) [attach] - receive notification: highlight []
2022-11-25T13:19:47.027 INFO (pid:44182) [attach] - receive notification: highlight []
2022-11-25T13:20:07.578 INFO (pid:44182) [attach] - receive notification: highlight []
2022-11-25T13:20:09.119 INFO (pid:44182) [attach] - receive notification: highlight []
2022-11-25T13:20:11.030 INFO (pid:44182) [attach] - receive notification: highlight []
2022-11-25T13:20:18.109 INFO (pid:44182) [services] - LanguageClient clangd state change: stopped => starting
2022-11-25T13:20:18.114 INFO (pid:44182) [language-client-index] - Language server "clangd" started with 44350
2022-11-25T13:20:18.129 INFO (pid:44182) [services] - LanguageClient clangd state change: starting => running
2022-11-25T13:20:18.139 INFO (pid:44182) [services] - service clangd started
2022-11-25T13:20:18.292 INFO (pid:44182) [attach] - receive notification: highlight []
2022-11-25T13:20:19.119 INFO (pid:44182) [attach] - receive notification: highlight []
2022-11-25T13:20:24.584 INFO (pid:44182) [attach] - receive notification: highlight []
2022-11-25T13:20:30.267 INFO (pid:44182) [attach] - receive notification: showInfo []

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

icaro-menesescommented, Nov 28, 2022

I performed tests with versions 9.0.950, 9.0.960 and 9.0.961 and in the last mentioned version, the problem was solved.

With that I think I can close this issue.

Thank you so much for your support and patience.

icaro-menesescommented, Nov 28, 2022

My version is 9.0.910, which is the most current version in the official Arch Linux repositories, but I will be installing the most current version directly from the official Vim repository.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cursor jumps to position in vertical split after delete #3455
Steps to reproduce the behavior: Open a file; :vs; move to another line in the split with j or k, preferably one off...
Read more >
Vim splits, an introduction. - Source Allies
Focus is in the new split initially. To move between splits first press Ctrl-w (I remember this by Control Window, I'm not sure...
Read more >
Vim cursor position on new split window - Stack Overflow
When you :split filename , the new window (containing filename ) will be active. It's just that your perception of what is "original" ......
Read more >
Vim Move Split - VimTricks
First I press ctrl-w K in Vim to move the split across the top, then ctrl-w J to move the same split across...
Read more >
How to get vim to retain cursor position when opening a split
The answer on there was to do something useless that opens then closes a window, and then to do your vertical split. Here's...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found