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

very magic not correctly inserted after :g! command #20

Closed
sebastian-kempf opened this issue Dec 2, 2021 · 2 comments
Closed

very magic not correctly inserted after :g! command #20

sebastian-kempf opened this issue Dec 2, 2021 · 2 comments

Comments

@sebastian-kempf
Copy link

Noticed this little bug in an otherwise awesome plugin ;)
If I use the inverted global command the very magic suffix is appended right after the :g! as soon as I type the !. This results in g!\v and not the correct g!/\v. The / is skipped and I need to go back and add it manually.

It's not that big of a deal because you can just use the :v-command which does the same thing and works correctly but I didn't want it to go unnoticed either. (Replicated on neovim 0.5, 0.6 and 0.7)

@wincent
Copy link
Owner

wincent commented Dec 2, 2021

Thanks for the report, @sebastian-kempf. I didn't even know :g! was a thing, so happy to learn a new Vim factoid. Hopefully the fix will be straightforward; I'll take a look this evening.

wincent added a commit that referenced this issue Dec 2, 2021
Previously we were only looking for `:s`, `:g` and `:v`, but we should
actually work for all the non-abbreviated forms too.

Noticed while investigating:

    #20

Seeing as I've blown away my Haskell-based docvim install
on this machine (my personal laptop) while working on the
new-but-not-yet-feature-complete Rust-powered version, I
needed to set up a new install in order to update the docs:

    git clone $REPO_URL docvim-haskell
    cd docvim-haskell
    bin/build
    bin/docvim -c ~/code/loupe ~/code/loupe/doc/loupe.txt ~/code/loupe/README.md -v
@wincent wincent closed this as completed in 4e0b8d8 Dec 2, 2021
@sebastian-kempf
Copy link
Author

Wow, that was quick! I can confirm that it works as expected now. Thanks for your great work! 👍🏼

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