-
-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unknown function which_key#register #53
Labels
Comments
let mapleader=","
let g:which_key_map = {}
autocmd VimEnter * call which_key#register(',', "g:which_key_map")
nnoremap <silent> <leader> :<c-u>WhichKey ','<CR>
vnoremap <silent> <leader> :<c-u>WhichKey ','<CR>
set timeoutlen=500 |
Thanks for your help! |
以下是我的配置文件
启动时候会报如下错误:
请问我哪里弄错了吗? 最开始是按照使用文档写的
然后报这个错误
|
If you don't know how to use the lazy load feature of vim-plug, then do not use it. Take a closer look at the README of vim-which-key and vim-plug. The correct lazy load version: Plug 'liuchengxu/vim-which-key', { 'on': ['WhichKey', 'WhichKey!'] }
autocmd! User vim-which-key call which_key#register(',', 'g:which_key_map') |
嗯嗯,谢谢 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, I'm using your great plugin with Vim 8.1. I've installed the plugin as a Git submodule into Vim's
pack/plugins/start
directory, so it gets loaded when Vim starts.The plugin is working fine, but when I try to create a dictionary in my .vimrc, then I get the following error message:
E117: Unknown function: which_key#register
My configuration is very simple:
It seems like that at the time
.vimrc
is executed, the plugin is not yet loaded? Any hints?The text was updated successfully, but these errors were encountered: