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

Use S as move_key_modifier #78

Open
imhosseinzadeh opened this issue Oct 4, 2023 · 1 comment
Open

Use S as move_key_modifier #78

imhosseinzadeh opened this issue Oct 4, 2023 · 1 comment

Comments

@imhosseinzadeh
Copy link
Contributor

I would like to use Shift + k and Shift + j to move, but this doesn't solve my problem and doesn't work.

let g:move_key_modifier = 'S' 
let g:move_key_modifier_visualmode = 'S'

I'm on fedora 38 with vim-enhanced.x86_64.

@tmtd4c93aac
Copy link

tmtd4c93aac commented Jan 9, 2025

I just turned off the default mapping and added them back manually

  vim.g.move_map_keys = 0
  require("which-key").add({
        { "J", "<Plug>MoveLineDown", desc = "Move line down"},
        { "K", "<Plug>MoveLineUp",   desc = "Move line up"},
        { "J", "<Plug>MoveBlockDown", desc = "Move block down", mode = { "v" }},
        { "K", "<Plug>MoveBlockUp", desc = "Move block up", mode = { "v" }},
})

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

No branches or pull requests

2 participants