pseewald / vim-anyfold

Language agnostic vim plugin for folding and motion based on indentation.
MIT License
268 stars 11 forks source link

Identification of comment lines is slow #1

Closed pseewald closed 8 years ago

pseewald commented 8 years ago

The following comparison in function CommentLine is executed for each line and the bottleneck in the current implementation: synIDattr(synID(a:lnum,indent(a:lnum)+1,1),"name") =~? 'Comment' A faster alternative may be to parse the comments string (see h: comments).