Feature request: allow several commands to single mapping
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 27k
- Forks
- 2.6k
- PR merge metrics
- No merged PRs in 30d
Description
That would be a real power of Vim: map a sequence of commands to some keys. For example, to yank a word and paste into google translate:
map zt enterVisualMode y createTab https://translate.google.com/?q=%s#auto/en/
Presumably there needs to be a better support for yank commands and buffer for the %s part.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the existing key-mapping implementation and the handling of yank commands and buffers. Define how a mapping can execute a command sequence and how the yanked value substitutes for %s; done means the example mapping can run its commands and open the translated result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100