dorkhub

vim-shareedit

Share editor state such as cursor position between (Neo)vim and VSCode

kbwo
TypeScript541 forksMITupdated 1 year ago
git clone https://github.com/kbwo/vim-shareedit.gitkbwo/vim-shareedit

vim-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

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

vim-dap

Vim/Neovim debugger plugin providing a terminal interface to the Debug Adapter Protocol

Vim Script50

vim-halo

:innocent: Visual highlight for your cursor.

Vim script50

search

search projects, people, and tags