Skip to content

Dot repeat seems to be broken #55

Answered by mickael-menu
darvelo asked this question in Help
Discussion options

You must be logged in to vote

Unfortunately, it's a side effect of having the Insert mode handled by Xcode instead of Neovim (for performance reasons, and to improve the auto-completion, auto-indentation, etc.).

A workaround is to explicitly set the input to Neovim when in Insert mode. You can do that with :SVSetInputNvim.

Personally, I have a binding on C-n that I use after doing ciw.

imap <C-n> <Cmd>SVSetInputNvim<CR>

Alternatively, you can override ciw to toggle the Neovim input on-the-fly. You will need to do that for all the mappings you use.

noremap ciw <Cmd>SVSetInputNvim<CR>ciw

Note that by using SVSetInputNvim in Insert mode, the Xcode auto-completion won't be optimal.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@mickael-menu
Comment options

Answer selected by mickael-menu
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #54 on June 25, 2023 07:52.