Erlang binary matching - question #56

Open
aerosol opened this Issue Apr 19, 2012 · 3 comments

2 participants

@aerosol

Hi,

Not sure if an issue, how do I define a rule that will complete erlang binaries?

Type: <<, Get: <<|>>

Thanks

@kana
Owner

How about this?

call smartinput#map_to_trigger('i', '<lt>', '<lt>', '<lt>')
call smartinput#define_rule({
\   'at': '<\%#',
\   'char': '<lt>',
\   'input': '<lt>>><Left><Left>',
\   'filetype': ['erlang'],
\ })

Additionally, what points are hard to grasp to define rules? I'll update examples in the document if necessary.

@aerosol

Thanks, this is almost perfect, except that if hit >> I end up with >>>>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment