Easily swapping two words with ,lw

This commit is contained in:
Yannick Reiß 2024-05-12 22:02:26 +02:00
parent 5f39958f59
commit e539bb663d
1 changed files with 8 additions and 0 deletions

View File

@ -6,4 +6,12 @@ function SpacedLine()
normal j normal j
endfunction endfunction
function SwapWords()
normal dw
normal e
exec 'normal! a '
normal p
endfunction
nnoremap <leader>o :call SpacedLine()<CR> nnoremap <leader>o :call SpacedLine()<CR>
nnoremap <leader>ls :call SwapWords()<CR>