Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. " Alt to move lines up and down:
  2. nnoremap <A-k> :m .-2<CR>==
  3. nnoremap <A-j> :m .+1<CR>==
  4. inoremap <A-k> <Esc>:m .-2<CR>==gi
  5. inoremap <A-j> <Esc>:m .+1<CR>==gi
  6. vnoremap <A-j> :m '>+1<CR>gv=gv
  7. vnoremap <A-k> :m '<-2<CR>gv=gv
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement