Skip to content

Instantly share code, notes, and snippets.

@supermomonga
Created July 2, 2013 11:41
Show Gist options
  • Save supermomonga/5908625 to your computer and use it in GitHub Desktop.
Save supermomonga/5908625 to your computer and use it in GitHub Desktop.
call smartinput#map_to_trigger('i', '<Space>', '<Space>', '<Space>')
call smartinput#define_rule({
\ 'at': '^\(.*=\)\?\s*\zs\%(module\|class\|def\|if\|unless\|case\|while\|until\|for\|\|begin\)\>\%(.*[^.:@$]\<end\>\)\@!\|\<do\ze\%(\s*|.*|\)\=\s*\%#$',
\ 'char': '<Space>',
\ 'input': '<ESC>oend<ESC><Up>A<Space>',
\ 'filetype': ['ruby'],
\ })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment