-
Recently came across this editor and I have been impressed by the speed of it. I generally use neovim as my main editor 99% and if I am able to incorporate my frequently used keybindings then I can attempt to daily drive Zed. The keybindings I would like to incorporate are: jj - to substitute for Esc (use a delay to determine if actually typing jj or to use Escape) I have come across the documentation on the website outlining how to create custom vim keybindings but I am not able to find any built in API "vim::" call to accomplish this. Has anyone been able to figure this out/help me out? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
I have the same issue with jj and I can't understand why it doesn't work. I've tried alternatives like jk, but still not luck, when I'm in insert mode the j won't be displayed which is weird because g works perfectly fine in insert mode even though there are multiple commands utilising g, f.e. gn |
Beta Was this translation helpful? Give feedback.
-
Awesome, looking forward to the update. Do you happen to have any updates regarding the 2nd and 3rd keymaps I have mentioned in the post? Chain actions for yanking/clearing/deleting content found within special characters? The functionality already semi exists. For example, if I want to change content within single quotes then I would do |
Beta Was this translation helpful? Give feedback.
-
Currently we're prioritizing vim compatibility over custom keybindings; that said, there are a number of commonly used vim plugins I'd like to emulate. Is there a plugin that you use to provide the objects that you use? (I don't think |
Beta Was this translation helpful? Give feedback.
-
Got it
…On Mon, 5 Feb, 2024, 1:37 pm Thorsten Ball, ***@***.***> wrote:
Can you clarify what you're looking for? A text motion to select
tree-sitter contexts? These already exist, you just need to copy them to
your keybindings:
https://github.com/zed-industries/zed/blob/ac74a72a9ef80a6cc50e7b001e163e76fbd9fa3d/assets/keymaps/default.json#L336-L337
—
Reply to this email directly, view it on GitHub
<#6658 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AS3DYSRTS6BIG6KAIF3N42DYSCHMPAVCNFSM6AAAAABCY6EADSVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DGNRWG4YTQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
Just FYI: this is currently being fixed. In an upcoming Zed release you should then be able to bind
jk
to switch to normal mode, for example.