GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - vim-scripts/blockle.vim: Toggle ruby block styles

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
doc
doc
 
 
plugin
plugin
 
 
README
README
 
 

Repository files navigation

This is a mirror of http://www.vim.org/scripts/script.php?script_id=3373

This plugin allows rapid toggling between the two different styles of ruby
blocks, namely do/end and brackets {}. To use, simply move the cursor to the
beginning or end of a block, and type <Leader>b. As a mnemonic, remember 'b'
for 'block'.

Note: You must have your cursor on the do, end, {, or } for the plugin to work
correctly.

When moving from a do/end to a bracket-style block, the plugin with attempt to
move to a one-liner if appropriate:

For example, if have the following ruby code:

  ['one', 'two'].each do |number|
    puts number + "!"
  end

After invoking <Leader>b, the resulting code would be:

  ['one', 'two'].each { |number| puts number + "!" }


About

Toggle ruby block styles

www.vim.org/scripts/script.php?script_id=3373

Resources

Readme
Activity

Stars

3 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.