this post was submitted on 06 Dec 2023
8 points (90.0% liked)

Neovim

2161 readers
3 users here now

founded 1 year ago
MODERATORS
 

Im using neovim with nvchad, and i discovered accidentally that when im in edit mode and i type j more than 3 times in insert mode, it kicks me out of it, why does it happen?

top 4 comments
sorted by: hot top controversial new old
[–] mac@programming.dev 3 points 11 months ago

I havent used nvchad before but im assuming theres a mapping set to make that behaviour happen

Would be in a core/mappings file if its from nvchad or a custom/mappings file if its not (inside where you cloned the repo to)

https://nvchad.com/docs/config/mappings

[–] NostraDavid@programming.dev 3 points 11 months ago

This happens because it's a shortcut to jump out of insert mode.

[–] rustbuckett@programming.dev 2 points 11 months ago

I'd like to figure out that mapping. I do this all the time. I forget I'm in insert mode, try to move the curser with 'j' and just end up typing a bunch of j's that I have to delete.

[–] PlexSheep@feddit.de 1 points 9 months ago* (last edited 9 months ago)

Try doing a ripgrep search for "jjj" in ~/.config/nvim. The standard nvchad mapping for this is <leader>fw. If you find something, then that's where the mapping comes from.