-
Notifications
You must be signed in to change notification settings - Fork 254
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
Plugin recommendation:vim-leader-guide #34
Comments
Actually, I have tried this plugin before. However, I don't think it is good enough to play an important role in the daily use at present. It seemingly can't give a real-time prompt like which key and helm in spacemacs,which is very important. Furthermore, the help information of key bindings needs to be well organized so that we can get a good experience in using, which also needs some works to be done. For now, I suggest putting it in private plugins. But we can keep this issue open, it may be good enough someday. |
i've made a preview branch, maybe you can have a try. https://github.com/zer4tul/space-vim/tree/heavy . for me, it's nearly give me the prompt what i need like which-key+helm, because i cannot remember every keybinding. |
@zer4tul Wow, it really looks pretty heavy! I'll give it a try. |
I also tried vim-leader-guide, and I think it should be useful. If you are used to using spacemacs with evil, which-key is very helpful. But the difference between vim and evil maybe the leader key timeout. Many vimers like to set leader timeout. For example, in vim, I can bind Any thoughts? |
It can't be denied that vim-leader-guide is useful. Firstly, I just haven't figured out a nice way to integrate it into space-vim smoothly. Meanwhile, I hope the user experience could be as good as which key in spacemacs,at least acceptable. If not, the current solution is to use I am not sure if I was on a wrong direction to vim-leader-guide before. If someone could share a mature vim-leader-guide configuration, I'm utterly willing to take a chance. |
@zer4tul: just checked your heavy branch. It is really what I wanted when I started to try space-vim. But the same question as my above comment, is it possible to handle leader timeout very well? @liuchengxu Have you tried @zer4tul 's branch? It should be more similar with spacemacs. If you are just looking for something like the But you can see that |
i've noticed that. seems there are two problems.
|
I have tried the heavy branch (Still, I think that the leader guide is good, but not enough. Even Maybe we can make a new branch focusing on this? It's really a major revision and some problems indeed exist. I suggest integrating this into space-vim slowly. In order to bring in vim-leader-guide eventually, some good plans have to be made too. With so much content added, I don't think space-vim is simple or elegant any more 😂 。 |
@zer4tul I have just made a new branch named |
Initial version done. i have sent the PR. |
Accepted. By far, some problems are annoying.
For I want to invite you to be a collaborator of space-vim so that you can have the push access to the repo, are you interested? It's definitely a big change, which is far beyond what I designed in the very beginning. Now I am a little dazed frankly 🙉 . @tracyone @zer4tul @fno2010 |
well, it's OK for me. i want to make a leader-guide layer, so those ones who don't need the prompt can easily disable it. |
@zer4tul Thanks, I have sent the invitation. |
I have pushed a commit to vim-leader-guide branch.
|
@zer4tul I have a problem: I simply configure vim-leader-guide in let g:lmap = {}
let g:lmap['a'] = { 'name' : '+align' }
let g:lmap['b'] = { 'name' : '+buffer' }
...... vim-leader-guide doesn't show me the name If we can add the brief description to the existing key mappings shown in vim-leader-guide, maybe a lot of works could be saved. |
这周跟下周都会比较忙,年底,你懂的。这个问题等我忙过这段时间看一下,有进展我会回复。 |
了然了然,顺其自然,正事要紧 |
Hi there, |
@ctjhoa Thanks! spacevim is also a good job! It seems that to switch to the particular version could not solve the problem in my case, it raises some other errors: Error detected while processing function leaderGuide#start_by_prefix:
line 6:
E121: Undefined variable: s:cached_dicts
E116: Invalid arguments for function has_key(s:cached_dicts, a:key) || g:leaderGuide_run_map_on_popup
E15: Invalid expression: !has_key(s:cached_dicts, a:key) || g:leaderGuide_run_map_on_popup
line 12:
E121: Undefined variable: s:desc_lookup
E116: Invalid arguments for function has_key(s:desc_lookup, a:key) || has_key(s:desc_lookup , 'top')
E15: Invalid expression: has_key(s:desc_lookup, a:key) || has_key(s:desc_lookup , 'top')
line 18:
E121: Undefined variable: rundict
E116: Invalid arguments for function <SNR>149_start_buffer
Press ENTER or type command to continue I will dive into this when I have time。 BTW, since spacevim has supported |
I just made a ctrlp extension :ctrlp-leader-guide😄 |
@tracyone Uh, it looks not bad, but maybe not the ultimate goal. |
another similar plugin: sunaku/vim-shortcut |
It looks good. I'll give it a try. |
@liuchengxu I've done some progress on the |
@ctjhoa Great! Thanks a lot! I'm still working on this, although I'm also too busy(actually lazy) to delve into the problem. |
vim-leader-guide
Spacemacs like function:displays the available key bindings automatically and dynamically.
No need any config.
The text was updated successfully, but these errors were encountered: