vim-move icon indicating copy to clipboard operation
vim-move copied to clipboard

Out-of-box keymaps for moving are not working

Open Omcsesz opened this issue 2 years ago • 5 comments
trafficstars

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?

Omcsesz avatar May 12 '23 08:05 Omcsesz

Are you on MacOS by chance?

matze avatar May 15 '23 11:05 matze

Are you on MacOS by chance?

@matze No, I use Win10.

Omcsesz avatar May 15 '23 11:05 Omcsesz

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

Omcsesz avatar May 25 '23 07:05 Omcsesz

Same happening with me and I am on Mac @matze

tahseenjamal avatar Dec 19 '23 08:12 tahseenjamal

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

execute "set <M-j>=\ej" nnoremap <M-j> j execute "set <M-k>=\ek" nnoremap <M-k> k execute "set <M-h>=\eh" nnoremap <M-h> h execute "set <M-l>=\el" nnoremap <M-l> l

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

kirill-olegovich avatar Jan 03 '24 19:01 kirill-olegovich

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

this works! thanks

justamanm avatar Nov 11 '24 10:11 justamanm