From 64bcd7a1a05f751396b064a91da66bd303a6b584 Mon Sep 17 00:00:00 2001 From: lohhiiccc <96543753+lohhiiccc@users.noreply.github.com> Date: Tue, 19 Aug 2025 10:16:33 +0200 Subject: [PATCH] feat: vim-repeat optional is now optional --- plugin/singlechar.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/singlechar.vim b/plugin/singlechar.vim index 896a25d..76d8b2f 100644 --- a/plugin/singlechar.vim +++ b/plugin/singlechar.vim @@ -72,7 +72,9 @@ def InsertChar(mode: string, count: number, pkey: string = ''): void g:last_singlechar_count = count #set vim-repeat - legacy call repeat#set("\(singlechar-repeat)") + if exists('*repeat#set') + legacy call repeat#set("\(singlechar-repeat)") + endif enddef def g:RepeatSingleChar(): void