Easily swapping two words with ,lw
This commit is contained in:
parent
5f39958f59
commit
e539bb663d
|
@ -6,4 +6,12 @@ function SpacedLine()
|
|||
normal j
|
||||
endfunction
|
||||
|
||||
function SwapWords()
|
||||
normal dw
|
||||
normal e
|
||||
exec 'normal! a '
|
||||
normal p
|
||||
endfunction
|
||||
|
||||
nnoremap <leader>o :call SpacedLine()<CR>
|
||||
nnoremap <leader>ls :call SwapWords()<CR>
|
||||
|
|
Loading…
Reference in New Issue