GithubHelp home page GithubHelp logo

Comments (7)

AndrewRadev avatar AndrewRadev commented on June 18, 2024

I can't seem to reproduce the issue. I'm not sure what -u NORC does, I also tried with -u NONE, but then I just get an error that the command is not defined.

I think that the se rtp+=... is executed after Vim is already loaded, so the plugin is not runtime'd. Maybe it's just erroring out due to not finding the plugin. Do you get any error messages? Does the :Switch command function or just do nothing? Do you get an error during standard usage or only with a minimal example like this?

Try adding a --cmd 'runtime plugin/switch.vim' afterward the rtp part and see if it changes anything.

from switch.vim.

bohrshaw avatar bohrshaw commented on June 18, 2024

This is very strange that you would notice this in your daily usage if sound/visual bells are not all disabled.

I believe my testing command is fine. I cloned your bundle into this path('~/.vim/bundle/switch.vim') which is added in the rtp in my testing command. --cmd is executed before processing any vimrc files. And -u NORC means "no vimrc, but do sourcing plugins", yet -u NONE also escapes sourcing plugins.

I only heard a bell by executing the Switch command which did change my example text 'true' to 'false'.

from switch.vim.

AndrewRadev avatar AndrewRadev commented on June 18, 2024

You're right, I do have them disabled, but I reenabled them for the test. Your test command is correct, though, it turns out I also get the beep when the :Switch command is executed and completes. I was testing it on an empty file, so it wasn't doing anything :).

I'll see what I can do about fixing this.

from switch.vim.

AndrewRadev avatar AndrewRadev commented on June 18, 2024

I've pushed a commit that should fix the issue by disabling the bell and re-enabling it afterwards. Could you test it out and let me know if it works?

from switch.vim.

bohrshaw avatar bohrshaw commented on June 18, 2024

I just look into your last commit and silent normal! l in some edge cases, which I have tested fixes this issue.

from switch.vim.

AndrewRadev avatar AndrewRadev commented on June 18, 2024

Huh, you're right. I had attempted silent normal!, didn't think to try silent!. Thanks, I've pushed a new commit with that logic :).

from switch.vim.

AndrewRadev avatar AndrewRadev commented on June 18, 2024

With this, I guess the issue is fixed. Thanks a lot for the help :). Please reopen if it occurs again.

from switch.vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.