https://github.com/todesking/ruby_hl_lvar.vim
Highlight Ruby local variables
https://github.com/todesking/ruby_hl_lvar.vim
Last synced: about 1 year ago
JSON representation
Highlight Ruby local variables
- Host: GitHub
- URL: https://github.com/todesking/ruby_hl_lvar.vim
- Owner: todesking
- License: mit
- Created: 2014-04-20T11:27:31.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2020-02-21T10:27:17.000Z (over 6 years ago)
- Last Synced: 2025-04-09T00:24:09.719Z (about 1 year ago)
- Language: Ruby
- Size: 978 KB
- Stars: 53
- Watchers: 5
- Forks: 10
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ruby_hl_lvar.vim
Highlight local variables in Ruby files.

## Requirements
- Vim Ruby interface(`has('ruby')`) enabled and Ruby's version = 2.0.0 (You can check by `:ruby puts RUBY_VERSION`)
Other versions of Rubies, whitch version is >= 1.9.0 may works, but I tested under only 2.0.0.
Bug reports are welcome.
## Usage
Install and open any .rb file. Advanced usage is below.
## Settings
```vim
" Highligt group name for local variable
" Default: 'Identifier'
let g:ruby_hl_lvar_hl_group = 'RubyLocalVariable'
" Auto enable and refresh highlight when text is changed. Useful but bit slow.
" Default: 1
let g:ruby_hl_lvar_auto_enable = 0
" If you wish to control the plugin manually, map these functions.
nmap he (ruby_hl_lvar-enable)
nmap hd (ruby_hl_lvar-disable)
nmap hr (ruby_hl_lvar-refresh)
```
## Known bugs
- -Sometimes highlight contaminate other buffers- (hopefully fixed)