* Add vim client. * Checking global flag to avoid duplicated loading. |
||
|---|---|---|
| .. | ||
| autoload | ||
| node_scripts | ||
| plugin | ||
| README.md | ||
README.md
How to Use This VIM Plugin
Requirements
- VIM 9.0+ with
+joband+textpropfeatures enabled. NeoVIM is not supported at the moment. - Node.js 16.0+, with
yarnornpminstalled.
Setup
-
Build node scripts in
node_scripts/directory. Useyarnas example. You can also usenpminstead.cd node_scripts yarn && yarn build cd .. -
Copy this directory to your VIM plugin directory.
cp -r . ~/.vim/pack/plugins/start/tabby.vim -
(Optional) Set Tabby server URL in your
vimrcfile. If you do not set a URL, the default value ishttp://127.0.0.1:5000.let g:tabby_server_url = 'http://127.0.0.1:5000' -
(Optional) Turn on
filetypeplugin for better compatibility.filetype plugin on
Usage
-
In insert mode, Tabby will show code suggestion when you stop typing. Press
<Tab>to accpet the current suggestion,<M-]>to see the next suggestion,<M-[>to see previous suggestion, or<C-]>to dismiss. -
Use command
:Tabby enableto enable,:Tabby disableto disable Tabby, and:Tabby statusto check status.