Typing j more than three times in insert mode kicks me out of insert mode

3 years ago by prettydarknwild to c/neovim

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?

mac 3 points 3 years 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

path: 0 5856893, hotness: undefined, score: 3, children: 0
NostraDavid 3 points 3 years ago

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

path: 0 5896247, hotness: undefined, score: 3, children: 0
rustbuckett 2 points 3 years 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.

path: 0 5895469, hotness: undefined, score: 2, children: 0
PlexSheep 1 point 3 years ago

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

path: 0 6837951, hotness: undefined, score: 1, children: 0
neovim
neovim

@programming.dev

login for more options
2894
227
57

go to feed...