Closed temporized-andy closed 2 years ago
@temporized-andy Please follow the instructions in the issue template.
In particular, what's the expected behavior you want to achieve?
@temporized-andy same functionality as in vim: zz - scroll current line the center zt - scroll current line to the top zb - scroll current line to the bottom
for zt
and zb
, you can use gg
and G
.
Alternatively, add the following to your user-config.
(evil-define-key 'evilified neotree-mode-map
"zz" #'evil-scroll-line-to-center
"zt" #'evil-scroll-line-to-top
"zb" #'evil-scroll-line-to-bottom)
Thank you so much! gg and G jump to the top/bottom which is slightly different but your snipped did exactly what I expected. It would be cool to have this out of the box like NerdTree.
We provide vim-inspired key bindings, which is gg and G.
But Neotree-style key bindings is not a design goal.
@lebensterben I am sorry but these are not the Neotree keys these are vim keys. Neotree is just rendered inside a vim buffer and supports everything naturally. You can use the same key sequences anywhere in vim.
Hmm sounds useful, I see what I can do
I have added the vim bindings for zz, zt and zb. However other evio bindings like L are still missing as this tree is pretty old and brings its own set of keybindings.
For a full vim experience you should consider switching to the more modern treemacs package.
@smile13241324 thank you so much!
Could you please enable zz, zt, zb to position current line in NeoTree?