Make visual join more intuitive.
parent
01dd3f9f41
commit
29d4c9cb21
|
@ -139,7 +139,7 @@ endfunction
|
|||
|
||||
function! g:SaveCursorVisualSmartJoin()
|
||||
call setpos('.', getpos("'<"))
|
||||
call s:SmartJoin(getpos("'>")[1] - getpos('.')[1])
|
||||
call s:SmartJoin(getpos("'>")[1] - getpos('.')[1] - 1)
|
||||
exe "normal! `<"
|
||||
endfunction
|
||||
|
||||
|
|
Loading…
Reference in New Issue