Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change from ae/ie to ar/ir for rubyblock.

The [textobj-entire plugin][entire] uses ae/ie, and I don't want to
conflict with it.

[entire]: https://github.com/kana/vim-textobj-entire
  • Loading branch information...
commit 7a12f928c791cf7098734a7fe18422a3a01afc03 1 parent 72f0d6d
@nelstrom authored
Showing with 12 additions and 12 deletions.
  1. +2 −2 plugin/textobj/rubyblock.vim
  2. +10 −10 test/basic.input
View
4 plugin/textobj/rubyblock.vim
@@ -6,8 +6,8 @@ endif
call textobj#user#plugin('rubyblock', {
\ '-': {
\ '*sfile*': expand('<sfile>:p'),
-\ 'select-a': 'ae', '*select-a-function*': 's:select_a',
-\ 'select-i': 'ie', '*select-i-function*': 's:select_i'
+\ 'select-a': 'ar', '*select-a-function*': 's:select_a',
+\ 'select-i': 'ir', '*select-i-function*': 's:select_i'
\ }
\ })
View
20 test/basic.input
@@ -24,16 +24,16 @@ endfunction
function s:describe__default_key_mappings()
It "Check the definitions of the default key mappings in each mode"
- Should maparg('ae', 'c') ==# ''
- Should maparg('ae', 'i') ==# ''
- Should maparg('ae', 'n') ==# ''
- Should maparg('ae', 'o') ==# '<Plug>(textobj-rubyblock-a)'
- Should maparg('ae', 'v') ==# '<Plug>(textobj-rubyblock-a)'
- Should maparg('ie', 'c') ==# ''
- Should maparg('ie', 'i') ==# ''
- Should maparg('ie', 'n') ==# ''
- Should maparg('ie', 'o') ==# '<Plug>(textobj-rubyblock-i)'
- Should maparg('ie', 'v') ==# '<Plug>(textobj-rubyblock-i)'
+ Should maparg('ar', 'c') ==# ''
+ Should maparg('ar', 'i') ==# ''
+ Should maparg('ar', 'n') ==# ''
+ Should maparg('ar', 'o') ==# '<Plug>(textobj-rubyblock-a)'
+ Should maparg('ar', 'v') ==# '<Plug>(textobj-rubyblock-a)'
+ Should maparg('ir', 'c') ==# ''
+ Should maparg('ir', 'i') ==# ''
+ Should maparg('ir', 'n') ==# ''
+ Should maparg('ir', 'o') ==# '<Plug>(textobj-rubyblock-i)'
+ Should maparg('ir', 'v') ==# '<Plug>(textobj-rubyblock-i)'
endfunction
function s:describe__select_a()
Please sign in to comment.
Something went wrong with that request. Please try again.