the most lightweight(SHA BI) completion plug of vim
-
the function is the same as vim-sb-complete1
-
much faster than
vim-sb-complete1
-
but not support for CJK
-
manual
- put the
autoload/sbcom2.vim
to~/.vim/autoload/
- put the
plugin/sbcom2.vim
to~/.vim/plugin/
- put the
-
vim-plug
- add
Plug 'niabie/vim-sb-complete2'
to your~/.vimrc
- execute
:PlugInstall
in vim
- execute
- add
- add this to
~/.vimrc
, to start-up the plug
let g:sbcom2_active = 1
-
manual turning off or on
- turn off
:Sbcom2Off
- turn on
:Sbcom2On
- turn off
-
The default trigger is
<tab>
. If you want to change the trigger, for example, replace<tab>
with<space>
, add this to your~/.vimrc
let g:sbcom2_trigger = "<space>"
another example, using a sequence jkl
to replace <tab>
let g:sbcom2_trigger = "jkl"
- Set the searching field. The script will search the words which are in the nearest
g:sbcom2_maxline
lines (default is 60)
let g:sbcom2_maxline = 30
Don't use this command in commandline directly
-
manual
- delete
autoload/sbcom2.vim
- delete
plugin/sbcom2.vim
- delete
-
vim-plug
Plug 'niabie/vim-sb-complete2'
- execute
:PlugClean
in vim
- execute
- The script is too slow