Comments (7)
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.
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.
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.
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.
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.
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.
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)
- Switch.vim pollutes search history HOT 2
- help with a bash switch? HOT 6
- Add case insesitivity HOT 2
- Does not working eruby_tag_type in eruby filetype. HOT 4
- [wiki] Anyone know how to write a substitution for React props? HOT 3
- Invert logical expression, using De Morgan Law HOT 1
- "." repeats always forward, even if the last used command was "SwitchReverse" HOT 2
- Undefined variable: g:switch_builtins and invalid expression error on startup when opening a Ruby file and loading the plugin through NeoBundle HOT 2
- Enable js toggles for typescript, typescript.tsx filetypes HOT 2
- switch#NormalizedCase and word boundaries HOT 3
- increase/decrease number HOT 2
- Switching all the flags at once HOT 2
- Possible to call normal commands in switch definition? HOT 10
- Enable switching booleans anywhere on the line and returning to original cursor position HOT 6
- Introduce a way to set priority/precedence? HOT 9
- Idea: Multiple switch alternatives HOT 3
- Comparison to swapit HOT 2
- can you please add a configuration example for lua HOT 2
- NormalizedCaseWords does not work for capitalized words HOT 2
- Patch to allow reverse action (and count) in lambda substitutions HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from switch.vim.