All Projects → jgdavey → Vim Blockle

jgdavey / Vim Blockle

Brace yourself, it's time to toggle your ruby blocks!

Labels

Projects that are alternatives of or similar to Vim Blockle

Buffet.vim
A vimplugin for switching and managing buffer lists
Stars: ✭ 52 (-13.33%)
Mutual labels:  viml
Vim Giphy
Giphy in your vim
Stars: ✭ 54 (-10%)
Mutual labels:  viml
Grep.vim
Grep search tools integration with Vim
Stars: ✭ 56 (-6.67%)
Mutual labels:  viml
Viki vim
A personal wiki for Vim
Stars: ✭ 52 (-13.33%)
Mutual labels:  viml
Vim Togglemouse
Toggles the mouse focus between Vim and your terminal emulator, allowing terminal emulator mouse commands, like copy/paste.
Stars: ✭ 53 (-11.67%)
Mutual labels:  viml
Vim Alignta
Align Them All!
Stars: ✭ 54 (-10%)
Mutual labels:  viml
Ctrlp Extensions.vim
Plugins for ctrlp.vim
Stars: ✭ 51 (-15%)
Mutual labels:  viml
Bisectly
Binary search tool
Stars: ✭ 59 (-1.67%)
Mutual labels:  viml
Yaml Vim
YAML Highlight script for VIM editor
Stars: ✭ 53 (-11.67%)
Mutual labels:  viml
Vim Sauce
Multiple source file management for Vim
Stars: ✭ 55 (-8.33%)
Mutual labels:  viml
Bookmark
[DEPRECATED] 웹 즐겨찾기
Stars: ✭ 53 (-11.67%)
Mutual labels:  viml
Javacomplete
Omni Completion for JAVA
Stars: ✭ 53 (-11.67%)
Mutual labels:  viml
Rubyblue
A collection of themes for different text editors that mimic the colors used in the code samples on ruby-lang.org
Stars: ✭ 54 (-10%)
Mutual labels:  viml
Pep8
Check your python source files with PEP8
Stars: ✭ 52 (-13.33%)
Mutual labels:  viml
Vim Holylight
A Vim plugin for MacBook users that automatically sets the background to light or dark depending on the ambient light
Stars: ✭ 57 (-5%)
Mutual labels:  viml
Fmacvim
MacVim + essential plugins + my custom (and awesome) .vimrc
Stars: ✭ 52 (-13.33%)
Mutual labels:  viml
Vimdown
A dirty tool to convert .vimrc and .vim script files to markdown
Stars: ✭ 54 (-10%)
Mutual labels:  viml
Hypergit.vim
This git plugin provides many awesome features so that you don't need to type commands anymore..
Stars: ✭ 59 (-1.67%)
Mutual labels:  viml
Vim Partial
Makes creating partials in your code a breeze!
Stars: ✭ 58 (-3.33%)
Mutual labels:  viml
Vim Better Javascript Completion
An expansion of Vim's current JavaScript syntax file.
Stars: ✭ 55 (-8.33%)
Mutual labels:  viml

vim-blockle Build Status

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: This plugin works best if you have your cursor on a do, end, {, or }. An attempt is made for it to work if you are inside a block as well, in which case the most immediate parent will be toggled.

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

For example, if you have the following ruby code (* indicates cursor position):

['one', 'two'].each d*o |number|
  puts number + "!"
end

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

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

Installation

If you don't have a preferred installation method, I recommend installing pathogen.vim, and then simply copy and paste:

cd ~/.vim/bundle
git clone git://github.com/jgdavey/vim-blockle.git

Once help tags have been generated, you can view the manual with :help blockle.

Requirements

This plugin is only available if 'compatible' is not set, and will only work correctly if matchit.vim is available. Needs vim 7.4 to work.

License

Copyright (c) Joshua Davey. Distributed under the same terms as Vim itself. See :help license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].