Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Highlight Ruby local variables

License

NotificationsYou must be signed in to change notification settings

todesking/ruby_hl_lvar.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Highlight local variables in Ruby files.

demo

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

" Highligt group name for local variable" Default: 'Identifier'letg:ruby_hl_lvar_hl_group='RubyLocalVariable'" Auto enable and refresh highlight when text is changed. Useful but bit slow." Default: 1letg:ruby_hl_lvar_auto_enable=0" If you wish to control the plugin manually, map these functions.nmap<leader>he<Plug>(ruby_hl_lvar-enable)nmap<leader>hd<Plug>(ruby_hl_lvar-disable)nmap<leader>hr<Plug>(ruby_hl_lvar-refresh)

Known bugs

  • -Sometimes highlight contaminate other buffers- (hopefully fixed)

About

Highlight Ruby local variables

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors5


[8]ページ先頭

©2009-2025 Movatter.jp