Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AndrewRadev/discotheque.vim
Emphasize pieces of text, with style.
https://github.com/AndrewRadev/discotheque.vim
highlighting vim
Last synced: 3 months ago
JSON representation
Emphasize pieces of text, with style.
- Host: GitHub
- URL: https://github.com/AndrewRadev/discotheque.vim
- Owner: AndrewRadev
- License: mit
- Created: 2018-11-02T20:54:25.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-02T21:01:10.000Z (about 6 years ago)
- Last Synced: 2024-06-18T23:45:59.246Z (5 months ago)
- Topics: highlighting, vim
- Language: Vim script
- Homepage:
- Size: 3.91 KB
- Stars: 28
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Are you having trouble scanning for particular operators in the code? Keep missing the occasional punctuation characters? Enter the discotheque:
![Demo](http://i.andrewradev.com/642c491d58418f558f203e48dc66eacc.gif)
## Usage
Just run the main command with a Vim regex:
``` vim
:Disco some_variable_name
:Disco +
:Disco unsafe {\_.\{-}}
```When moving the cursor, the colors of the highlighted text will toggle between blue and red. To stop the highlighting, just run the command with no arguments:
```
:Disco
```## Should I seriously use this?
There's probably less... energetic ways to emphasize pieces of code you're interested in. But it's a fun party trick.