Skip to content

Dot repeat doesn't call sade function #3

@joshtch

Description

@joshtch

From before:

function! SadeAppend()
    normal! `>
    if 'g:sade#Repeating'
        normal! .
    else
        call feedkeys("\<esc>a", 'n')
    endif
endfunction
function! SadeInsert()
    normal! `<
    if 'g:sade#Repeating'
        normal! .
    else
        call feedkeys("\<esc>i", 'n')
    endif
endfunction
call sade#Func('(', 'SadeInsert')
call sade#Func(')', 'SadeAppend')

When I press the dot operator it performs the last insert operation at the current location without calling the function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions