JuliaEditorSupport / julia-vim

Vim support for Julia.
http://julialang.org/
Other
753 stars 94 forks source link

Use 'normal!' to avoid issues with remapped % #189

Closed Nudin closed 4 years ago

Nudin commented 4 years ago

Still a hacky solution but at least a remapped % doesn't result in a disaster.

carlobaldassi commented 4 years ago

Wouldn't that use the default vim behavior of % which only recognizes C syntax? The call to normal instead of normal! was done on purpose to get to use matchit.

carlobaldassi commented 4 years ago

I have pushed a fix that should cover all cases, trying to detect matchit and falling back to un-mapped % otherwise.