Open cseelus opened 9 years ago
I had similar problems in Jade templates (essentially the same syntax as Slim). Tried to sort it out by commenting out this section of the plugin to no avail. After uninstalling and restarting I had clear out the associated view files before it was back to normal.
Highlighting, nice as it is to have, wasn't my main problem. Movements and pattern searching with * were broken. So hitting *
here: href="#pr[*]ofile"
wouldn't find <section id="profile">
.
Enjoyed this plugin. Will keep an eye on this thread in the hopes that someone else with more marbles than I gives it a shot.
Just tried installing it again. Changing those 3 lines linked above from
:set isk+=-
:set isk+=#
:set isk+=.
to
setlocal isk-=-
setlocal isk-=#
setlocal isk-=.
seems to have sorted it out. Not sure if there any actual repercussions from changing it.
PR to make this fix: #30.
Installed it yesterday (via vim-plug) and worked very nice so far.
When editing some .slim files for a Rails project today, I noticed IDs and classes weren't highlighted anymore. Also the motion keys
w
,e
andb
didn't work as usual, e.g.w
moved from[s]pan.amount = @spending.amount
tospan.amount [=] @spending.amount
instead ofspan.[a]mount = @spending.amount
.