matze / vim-move

Plugin to move lines and selections up and down
http://www.vim.org/scripts/script.php?script_id=4687
MIT License
1.2k stars 56 forks source link

Out-of-box keymaps for moving are not working #75

Open Omcsesz opened 1 year ago

Omcsesz commented 1 year ago

Hello!

After installing the plugin, I noticed that the Alt-j, Alt-k, Alt-h, Alt-l combinations are not working at all neither in Insert mode, nor in Normal mode. Can you please support?

matze commented 1 year ago

Are you on MacOS by chance?

Omcsesz commented 1 year ago

Are you on MacOS by chance?

@matze No, I use Win10.

Omcsesz commented 1 year ago

@matze Do you have any idead on why it is not working?

tahseenjamal commented 10 months ago

Same happening with me and I am on Mac @matze

kirill-olegovich commented 9 months ago

For anyone who still has issue, this can help. Insert this lines in .vimrc file:

execute "set =\ej" nnoremap j execute "set =\ek" nnoremap k execute "set =\eh" nnoremap h execute "set =\el" nnoremap l

https://vi.stackexchange.com/questions/2350/how-to-map-alt-key