A VS Code extension that enables real-time cursor position synchronization between VS Code and Vim editors, making it easier to collaborate or switch between editors seamlessly.
- Real-time cursor position synchronization between VS Code and Vim
- Text selection synchronization
- Multi-session support for different projects
- Automatic reconnection handling
- Debounced cursor updates for better performance
- Support for both Windows and Unix-based systems
- Visual Studio Code
- Vim with vim-shareedit plugin installed
- Install this extension from the VS Code marketplace
- Install the vim-shareedit plugin in Vim ( see vim-shareedit for instructions )
- Install the vscode-shareedit extension in VSCode ( see Marketplace )
- Start a ShareEdit session in Vim using the vim-shareedit plugin
- In VS Code:
- Open the command palette (Ctrl+Shift+P / Cmd+Shift+P)
- Run the "Connect to vim-shareedit" command
- Select the active session from the quick pick menu
- Your cursor positions will now be synchronized between VS Code and Vim. Try moving the cursor in one editor and see it move in the other.
- From v0.0.8, you no longer need to manually enter ports. You can now select from a list of active ports and their associated directories. Please update vim-shareedit to the latest version to use this feature.
Connect to vim-shareedit: Connect to a ShareEdit sessionDisconnect from vim-shareedit: Disconnect from the current session
- The extension automatically detects active ShareEdit sessions
- Sessions are stored in:
- Windows:
%APPDATA%\shareedit\sessions.json - Unix:
~/.config/shareedit/sessions.json
- Windows:
If you encounter connection issues:
- Ensure the vim-shareedit plugin is properly installed and running
- Check if the WebSocket server is running on the specified port
- Try disconnecting and reconnecting to the session
This extension is open-sourced under the MIT License - see the LICENSE file for details.