Using 'n' ends up searching for the last searched term and thus moving the cursor #2153
Answered
by
gegoune
lokesh-krishna
asked this question in
Q&A
-
Whenever I use n as part of the default keybinds, my cursor usually ends up jumping around as it triggers searching for the next instance of the last searched term. I'm sure I'm missing some fairly obvious workaround here but could someone please be patient enough to point out what it might be? |
Beta Was this translation helpful? Give feedback.
Answered by
gegoune
Apr 21, 2023
Replies: 1 comment 5 replies
-
This is default vim/nvim's mapping. What do you expect to happen instead? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, it's not, it's just
a
by default. Are you mistakingn
fromvim.keymap.set
's first argument (which is mode, see:h vim.keymap.set
) with actual mapping?In short, just use
a
.n
is fornormal
mode.