In the middle of a Vim session, I need to call a particular plugin's function via:

:call UltiSnips#RefreshSnippets()

When from normal mode I type :call UltiS<Tab>, it auto-expands to alphabetically the first offered function:

:call UltiSnips#AddFiletypes(

From here, I have to delete backward one character at a time until the # and then press R<tab> to get autocompletion to have:

:call UltiSnips#RefreshSnippets()

Is there any quicker way to delete backward until the # instead of backspace multiple times? Or else, is there a way to just:

:call UltiS<do something>

to get directly to:

:call UltiSnips#RefreshSnippets()

2 Answers 2


In command mode you can use: Ctrlw

It delete the previous 'word'

  • I see that this is similar to insert mode as well. Ctrlu, likewise, deletes everything and leaves only :. Thx!
    – Tryer
    Commented Dec 6, 2022 at 10:14
  • 1
    Thanks for the feedback :-). You have also Ctrl-h to delete the previous character. Ctrl-d for suggestion of completion. Commented Dec 6, 2022 at 11:47

I would probably use Ctrl-f (:help 'cedit') and T#C or similar. Or make a custom command or mapping that calls the function.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.