Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/airblade/vim-matchquote
A Vim plugin to provide %-style motion for single / double quotation marks, backticks and pipe.
https://github.com/airblade/vim-matchquote
vim viml
Last synced: 3 months ago
JSON representation
A Vim plugin to provide %-style motion for single / double quotation marks, backticks and pipe.
- Host: GitHub
- URL: https://github.com/airblade/vim-matchquote
- Owner: airblade
- Created: 2017-01-23T11:43:39.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-10-30T11:25:40.000Z (over 1 year ago)
- Last Synced: 2024-11-02T04:21:57.569Z (3 months ago)
- Topics: vim, viml
- Language: Vim Script
- Homepage:
- Size: 15.6 KB
- Stars: 32
- Watchers: 6
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# vim-matchquote
A Vim plugin to provide `%`-style motion for `'` (single quotation mark), `"` (double quotation mark), `` ` `` (backtick), and `|` (pipe).
Given these constraints:
- only the current line is considered;
- the quotation mark under the cursor must occur an even number of times in the line.Let's say the cursor is on the nth occurrence of the quotation mark. Then:
- if n is odd, the cursor moves forward to the next occurrence;
- otherwise the cursor moves backward to the previous occurrence.The plugin also adds a text object for inner pipe (`i|`) and around pipe (`a|`).
Please note the matchit plugin (if you use it) should be loaded before this plugin.
## Licence
Copyright Andrew Stewart. Distributed under the MIT licence.