matze / vim-move

Plugin to move lines and selections up and down

Home Page:http://www.vim.org/scripts/script.php?script_id=4687

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I map J K to move block down and up?

hungpham3112 opened this issue · comments

I have some key mappings but it didn't work like I expected.

let g:move_map_keys = 0
let g:move_undo_join = 0  
xnoremap J <Plug>MoveBlockDown                                                       
xnoremap K <Plug>MoveBlockUp
xnoremap H <Plug>MoveBlockLeft
xnoremap L <Plug>MoveBlockRight

I don't want to use default or . Thanks in advance

That's not how you map uppercase keys. You have to specify the shift modifier as well, i.e. <S-j> for the first map.