# Conflicts between vscode-vim and Julia code block execution

**URL:** <https://discourse.julialang.org/t/conflicts-between-vscode-vim-and-julia-code-block-execution/117198>\
**Category:** VS Code\
**Created:** [July 18, 2024, 7:54pm UTC](https://discourse.julialang.org/t/conflicts-between-vscode-vim-and-julia-code-block-execution/117198 "2024-07-18T19:54:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Strange\_Xue](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@Strange\_Xue](https://discourse.julialang.org/u/Strange_Xue)\
**Post date:** [July 18, 2024, 7:54pm UTC](https://discourse.julialang.org/t/conflicts-between-vscode-vim-and-julia-code-block-execution/117198/1 "2024-07-18T19:54:45Z")

</div>

HI guys, I use vscode and vscode-vim extension. When executing Julia code blocks through `ctrl + enter` in normal model, then the mouse cursor will move through, if I click `Esc` or some moving commands like `e`, `w`, then the cursor will return to the very beginning where I start to execute code blocks. Here is a gif to demonstrate. The cursor shouldn’t go back ideally.

I am not sure there are some conflicts between extensions or something else.  
 ![](https://global.discourse-cdn.com/julialang/original/3X/7/9/791892817d8266168cb4186d3d546eba39cd6745.gif)

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [July 19, 2024, 7:21am UTC](https://discourse.julialang.org/t/conflicts-between-vscode-vim-and-julia-code-block-execution/117198/2 "2024-07-19T07:21:00Z")

</div>

That’s not super surprising. The nvim extension’s cursor is decoupled from the one you see in the editor, unless you’re in insert mode. AFAIK that’s the only workaround right now.

---

<div class="post-metadata">

**Author:** ![Strange\_Xue](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@Strange\_Xue](https://discourse.julialang.org/u/Strange_Xue)\
**Post date:** [July 19, 2024, 5:09pm UTC](https://discourse.julialang.org/t/conflicts-between-vscode-vim-and-julia-code-block-execution/117198/3 "2024-07-19T17:09:01Z")

</div>

@pfitzseb  
Not sure. I disable / comment many settings of vim in the `settings.json`. Now, it looks good. In normal mode, the mouse cursor will keep at the same line when u enter `Esc`, `w`, `b`.
