ActualVim
Sublime Text 3 input mode using Neovim. Issues are closed, feel free to submit Pull Requests if you have bug fixes however.
Details
Installs
- Total 32K
- Win 12K
- Mac 12K
- Linux 9K
Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | Dec 7 | Dec 6 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | Dec 1 | Nov 30 | Nov 29 | Nov 28 | Nov 27 | Nov 26 | Nov 25 | Nov 24 | Nov 23 | Nov 22 | Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 1 | 0 | 2 | 0 | 1 | 0 | 3 | 0 | 1 | 1 | 2 | 0 | 0 | 2 | 0 | 3 | 2 | 1 | 2 | 2 | 1 | 0 | 6 | 1 | 2 | 2 | 4 | 1 | 0 | 2 | 1 | 2 | 0 | 0 | 0 | 0 | 0 | 3 | 2 | 3 | 1 | 0 | 5 | 0 | 1 |
Mac | 0 | 0 | 2 | 2 | 1 | 1 | 3 | 0 | 2 | 0 | 3 | 2 | 1 | 0 | 1 | 0 | 1 | 1 | 2 | 1 | 1 | 1 | 0 | 0 | 2 | 3 | 2 | 1 | 0 | 2 | 1 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 0 | 0 | 0 | 1 | 0 | 1 |
Linux | 0 | 1 | 2 | 3 | 3 | 1 | 2 | 1 | 0 | 1 | 2 | 2 | 4 | 2 | 2 | 0 | 0 | 2 | 1 | 0 | 1 | 1 | 3 | 0 | 0 | 2 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 2 | 1 | 1 | 1 | 0 | 0 | 1 | 3 |
Readme
- Source
- raw.githubusercontent.com
ActualVim
Everything you like about using Sublime Text 3, and everything you like about typing in vim.
Actual uses an embedded Neovim instance to accurately manipulate each Sublime Text buffer as though you were editing the text directly in vim, while the Sublime Text interface, features, and plugins continue to work (see end of README for caveats).
This isn't a remote terminal UI like gvim and other vim frontends. Text modification and selections are bidirectionally synced into the actual Sublime Text UI.
Why?
Sublime looks way better than your terminal and has a rich plugin ecosystem.
Other Sublime vim emulation plugins, including the built-in Vintage, are only rough approximations of the functionality of vim itself. They are missing features or behave differently than the real thing.
With ActualVim, you can use your own vimrc, plugins, and any real vim motions/commands, because it is vim behind the scenes, and bidirectional sync means Sublime Text and the native OS interface still works too.
Usage
This plugin requires Neovim to be installed, but should otherwise work on all Sublime Text 3 platforms (tested primarily on Windows and macOS). Please use at least Neovim 0.2.2, but Neovim 0.3 or newer is highly recommended.
Clone ActualVim to the path found in Preferences -> Browse Packages...
or sublime.packages_path()
. Usually found here:
- macOS:
~/Library/Application Support/Sublime Text 3/Packages/
- Linux:
~/.config/sublime-text-3/Packages/
- Windows:
%APPDATA%/Sublime Text 3/Packages/
You can set the Neovim path by opening Preferences: ActualVim Settings
using the command palette
(cmd+shift+p
or ctrl+shift+p
) or via Preferences -> Package Settings -> ActualVim Settings
.
ActualVim launches a single Neovim embedded instance and multiplexes each Sublime view into a separate buffer.
If the plugin doesn't work (a horizontal underline cursor appears when ActualVim kicks in), check the Sublime Text console for errors and make sure you set the Neovim path. Barring that, file an issue.
Misc
On OS X 10.7+, you should do defaults write com.sublimetext.3 ApplePressAndHoldEnabled -bool false
to enable key repeat.
You can run ActualVim: Disable
or ActualVim: Enable
via the command pallete to toggle the input mode without losing vim state.
Caveats
Currently broken Sublime Features:
- Multiple Selection (#8).
- Auto-popups while typing, like completion (#57) and snippet suggestions (#94).
- Sublime's undo isn't coalesced properly while in vim mode (it's one character at a time: #44).
Surfacing vim's UI (like the status bar) still needs some love, but I have some good ideas for making it look beautiful (better than your terminal) using Sublime's embedded HTML Phantom views.
Extremely large files will see a performance hit until neovim supports change deltas. The large_file_disable
command mitigates this by disabling
ActualVim for larger files (with configurable cutoff).