function! insert#InsertAtLineEnd(text) abort
	call setline('.', getline('.') . a:text)
endfunction

function! insert#InsertAtLineEnd(text) abort
	call setline('.', getline('.') . a:text)
	call cursor(getcurpos()[1], 999)
endfunction

Put cursor in desired location.
Put cursor in desired location.

Before this, calls to insert#InsertAtLineEnd() would result in the
cursor being at column 1.

deoxys314/deoxys314_dotfiles