vim: add mapping to move lines up and down
This commit is contained in:
parent
1abb2f9597
commit
21844ac96a
1 changed files with 6 additions and 0 deletions
|
@ -191,6 +191,12 @@ nnoremap <leader>w :FixWhitespace<cr>
|
|||
|
||||
" cycle through line numbering modes
|
||||
nnoremap <silent> <leader>l :call VimrcCycleNumbers()<CR>
|
||||
|
||||
" move lines up and down
|
||||
nnoremap <A-j> :move .+1<cr>
|
||||
nnoremap <A-k> :move .-2<cr>
|
||||
vnoremap <A-j> :move '>+1<cr>gv
|
||||
vnoremap <A-k> :move '<-2<cr>gv
|
||||
" }}}"
|
||||
|
||||
augroup vimrc " {{{
|
||||
|
|
Loading…
Add table
Reference in a new issue