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

move lines up or down #1299

Closed
wants to merge 2 commits into from
Closed

move lines up or down #1299

wants to merge 2 commits into from

Conversation

PhilBrk8
Copy link

@PhilBrk8 PhilBrk8 commented Jan 6, 2025

Added keymap to move lines up or down with Alt+k / Alt+j


NOTE
I really like this feature in vs code and I think it is quite helpful and simplifies my life.
I hope that others will benefit as well from it if it is a default in the kickstarter.

Kind regards, and thank you for the kickstarter and advent of neovim series - helped me a ton.


Added keymap to move lines up or down with Alt+k / Alt+j
@iton0
Copy link
Contributor

iton0 commented Jan 6, 2025

I like the idea, but I think it's best not to add more keymaps. If a user already has these keymaps for different functionality, it could lead to conflicts. If you're set on including this feature, I’d recommend adding the keymaps as a comment instead to avoid any potential issues.

changed the keymaps to comments also as demo for beginners to demonstrate a bit more advanced commands on keymaps
@PhilBrk8
Copy link
Author

PhilBrk8 commented Jan 6, 2025

Thanks for the advice.
I used the kickstarter as starting point for a fresh nvim, so I didn't think about that.

@feoh
Copy link
Collaborator

feoh commented Jan 7, 2025

Hi. Thanks for this contribution but I don't really think this is a good fit for every Neovim user.

@feoh feoh closed this Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants