@woshichuanqilz
2015-10-15T06:19:47.000000Z
字数 482
阅读 1230
Vim
1. Operate on a paragraph
dap delete 1 parad2ap delete 2 paravap select a para
2. About the Move command
nnoremap <A-j> :m .+1<CR>==nnoremap <A-k> :m .-2<CR>==inoremap <A-j> <Esc>:m .+1<CR>==giinoremap <A-k> <Esc>:m .-2<CR>==givnoremap <A-j> :m '>+1<CR>gv=gvvnoremap <A-k> :m '<-2<CR>gv=gvnote:1. m(ove) .+1 ----> move to the up a line2. == ----> align3. gi ----> jump to the last insert mode postion4. gv ----> jump to the last visual mode postion5. '< ----> mark the beginning of the selection6. '> ----> mark the end of the selection
