Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jamessan
Copy link
Contributor

As can be seen at ":help :sgr", there's an entire table describing
2-/3-character variations on the :substitute command, which embed flags
in the command name. However, all of those commands actually fail with
"E488: Trailing characters".

This PR adds explicit handling for the named commands and some minimal
testing that they work.

@brammool brammool closed this in 8c50d50 Feb 17, 2017
@brammool
Copy link
Contributor

brammool commented Feb 17, 2017 via email

@jamessan jamessan deleted the substitute-variants branch February 17, 2017 18:13
@jamessan
Copy link
Contributor Author

You have misunderstood how this works. When putting flags right after ":s" no pattern or substitute string can follow.

Ok. That isn't very clear from the documentation.

chrisbra pushed a commit to chrisbra/vim that referenced this pull request Mar 25, 2017
Problem:    Flags of :substitute not sufficiently tested.
Solution:   Test up to two letter flag combinations. (James McCoy, closes
            vim#1479)
desvp pushed a commit to desvp/vim that referenced this pull request May 30, 2017
Problem:    Flags of :substitute not sufficiently tested.
Solution:   Test up to two letter flag combinations. (James McCoy, closes
            vim#1479)
justinmk added a commit to justinmk/neovim that referenced this pull request Jan 1, 2018
Problem:    Flags of :substitute not sufficiently tested.
Solution:   Test up to two letter flag combinations. (James McCoy, closes
            vim/vim#1479)

vim/vim@8c50d50
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

Successfully merging this pull request may close these issues.

2 participants