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

Ignore :w !sudo #109

Open
dhnam opened this issue Mar 19, 2024 · 2 comments
Open

Ignore :w !sudo #109

dhnam opened this issue Mar 19, 2024 · 2 comments

Comments

@dhnam
Copy link

dhnam commented Mar 19, 2024

I forgot to use sudo to edit file, I searched for how to save in super user permission, and told to use :w !sudo tee %.

I tried, and when I type '!' after :w, neovim stopped.

Guess cmp-cmdline tries to load autocomplete of ! after :w, even though I use default setting.

@theSprog
Copy link

Yes, I also encountered the problem you mentioned, but when I was about to type r !ls, neovim froze after I typed !.

But one thing I need to add is that neovim is not stopped, it is just stuck in a long processing logic. After I waited for about a few minutes, neovim still successfully read the contents of ls. , I tried disabling cmp-cmdline and the bug disappeared, so I think it should be a problem with cmp-cmdline

@theSprog
Copy link

I opened another issue to discuss this issue. #112

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