imxiejie / ThinkVim

Vim configuration in the 21st century
MIT License
868 stars 106 forks source link

Question: How to append to vim-which-key dictionary from local_settings.vim? #97

Closed quisenbeje closed 4 years ago

quisenbeje commented 4 years ago

Problems summary

I am setting up my local keymaps (in ~/.thinkvim.d/local_settings.vim). I'd really like to be able to register them with vim-which-key, but I can't work out how to do that from local_settings.vim. Is this possible?

scrn-2020-03-03-10-31-58

I've made several attempts with no luck. When attempted with the file shown above, I get the following error message from nvim.

Error detected while processing /home/quisenbeje/.thinkvim.d/local_settings.vim:
line   29:
E121: Undefined variable: g:which_key_map
line   31:
E121: Undefined variable: g:which_key_map
line   33:
E121: Undefined variable: g:which_key_map
Press ENTER or type command to continue
glepnir commented 4 years ago

please update . had fixed.