Skip to content

Instantly share code, notes, and snippets.

@scajanus
Created October 14, 2012 22:23
Show Gist options
  • Select an option

  • Save scajanus/3890009 to your computer and use it in GitHub Desktop.

Select an option

Save scajanus/3890009 to your computer and use it in GitHub Desktop.
vnoremap <Leader>h :<C-u>exec "match rubyRegexp /\\%" . line("'<") ."l\\_.*\\%" .line("'>"). "l" . "/" <CR>
nnoremap <Leader>h :exec "match rubyRegexp /\\%" . line(".") . "l.*/"<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment