Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

line moving when enteringnormal mode #4531

Closed
amirreza8002 opened this issue Mar 15, 2024 · 5 comments
Closed

line moving when enteringnormal mode #4531

amirreza8002 opened this issue Mar 15, 2024 · 5 comments
Labels
bug Something isn't working stale

Comments

@amirreza8002
Copy link

Problem description

when i hit Esc and enter normal mode
if i hit j excatly after that
if there is a line below the current one
the two lines switch places
but if i do anything before pressing j this won't happen

LunarVim version

1.3

Neovim version (>= 0.9.1)

0.9.5

Terminal name

gnome terminal

Operating system/version

linux openSUSE tumbleweed

Steps to reproduce

def this(x):
    print(2 + 2)
    print(3 + 3)

be on insert mode
go to line two
hit Esc
immediately hit j

Screenshots

No response

@amirreza8002 amirreza8002 added the bug Something isn't working label Mar 15, 2024
@chase
Copy link
Collaborator

chase commented Mar 19, 2024

It's probably this default binding (which I don't like either): https://github.com/LunarVim/LunarVim/blob/master/lua/lvim/keymappings.lua#L62-L63

I accidentally hit it pretty frequently. You can see my keymap configuration for how to disable it if you'd like to try: https://github.com/chase/lvim/blob/main/lua/user/keymap.lua

@amirreza8002
Copy link
Author

hi @chase, yes i had seen that before
the problem is i don't hit alt
this happens when you hit esc and hit j very fast, before the cursor turns to the block looking thin in normal mode

but once the cursor turns this doesn't happen
might not seem like a very big problem but kinda reduces my productivity

@chase
Copy link
Collaborator

chase commented Mar 21, 2024

If that's not the case, you can try :nmap j to view the keybindings that are set to j in Normal mode. If there's anything there that mentions lines, that's probably the culprit that you should unset.

Copy link
Contributor

This issue is stale because it has been open for 50 days with no activity.

@github-actions github-actions bot added the stale label May 11, 2024
Copy link
Contributor

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants