vim-shareedit
Share editor state such as cursor position between (Neo)vim and VSCode
git clone https://github.com/kbwo/vim-shareedit.gitkbwo/vim-shareeditvim-shareedit
Overview
A Neovim plugin that shares open files and cursor positions between Neovim and VSCode
Screencast.From.2025-01-26.10-01-14.mp4
Motivation
I have been using Neovim for a long time, but recently I've started using editors like Cursor Editor and Cline more frequently, which means I often need to switch between different editors for development and testing.
As I continued working this way, frequently switching between Neovim and other editors became cumbersome.
Therefore, to make switching between Neovim and VSCode smoother, I created this plugin that shares files and cursor positions between Neovim and VSCode.
Requirements
- Visual Studio Code with vscode-shareedit plugin installed
- Deno
Installation
Install with your preferred plugin manager.
vim-plug
Plug 'vim-denops/denops.vim'
Plug 'kbwo/vim-shareedit'
Usage
In Vim
:ShareEditStart
In VSCode, you can connect to vim-shareedit by Connect to vim-shareedit command from command palette (Cmd/Ctrl+Shift+P).
See VSCode Extension for more details.
TODO
- Share cursor position
- Vim <-> VSCode bidirectional cursor position syncing
- Session management
- Share visual mode selection range
- Share unsaved file edits
more like this