Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set timeoutlen=100 breaks the plugin #118

Open
Callendor opened this issue Oct 3, 2021 · 3 comments
Open

set timeoutlen=100 breaks the plugin #118

Callendor opened this issue Oct 3, 2021 · 3 comments

Comments

@Callendor
Copy link

I really want to be able to use this plugin but I'm running into an unknown issue -- that or I'm just missing something very obvious.

I'm installing via vim-plug. I'm running on mac (big Sur). I've tried using iterm2 and alacritty terminals.

I have removed all my plugins except for machakann/vim-sandwich.

vim-plug installs without any errors.

Once it installs, I open up a vim window and type foo.

I try running saiw( on foo and I don't get passed typing 's' as I immediately go into insert mode. Is there a configuration step I'm missing?

@machakann
Copy link
Owner

machakann commented Oct 3, 2021

Could you check the output with executing :nmap sa? If no mapping, the plugin is not installed properly.

Or could you show me a minimal working vimrc to reproduce the problem?

@Callendor
Copy link
Author

Callendor commented Oct 3, 2021

Found it --

set timeoutlen=100 breaks it.

too fast of a setting.... :)

@Callendor Callendor changed the title Mac user -- struggling to get plugin to work set timeoutlen=100 breaks the plugin Oct 3, 2021
@machakann
Copy link
Owner

I see. Then you have several options. One is to set longer 'timeoutlen', another is to give up using s command with

nmap s <Nop>
xmap s <Nop>

, or use vim-surround style keymappings if you like it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants