For example, I have the following line:
object => "plaintext",
I want to move the word "object" to the right (so this is one place from "=>"), for example:
object => "plaintext",
The only way I know this would be (starting at the beginning of the line): i <esc>ea4xor the equivalent from another starting location. I would like to do the same as for moving lines, but horizontally:
" Move lines up/down
nnoremap <Down> :m+<CR>==
nnoremap <Up> :m-2<CR>==
vnoremap <Down> :m '>+1<CR>gv=gv
vnoremap <Up> :m '<-2<CR>gv=gv
source
share