vim-utils / vim-troll-stopper

Stop Unicode trolls from messing with your code.
MIT License
177 stars 4 forks source link

Slow on large files or large lines #7

Open denilsonsa opened 8 years ago

denilsonsa commented 8 years ago

I have 175KB plaintext file with some very large lines. The largest one has 20K characters. All characters are standard ASCII chars, none of them are trollish.

If I open this file and :set nowrap, Vim becomes very slow and laggy. Disabling vim-troll-stopper plugin solves it.

The same happens when I open an SVG file, because several lines are very long.

Ideas for solutions:

bruno- commented 5 years ago

Sorry for the late reply here. I think this issue is legit, although I haven't had any noticeable issues with this.

To help with this issue, PR https://github.com/vim-utils/vim-troll-stopper/pull/10 was just merged. As far as selectively and intentionally starting the plugin, vim 8's 'packages' feature could help here. It has a new opt directory that allows the plugins to be started selectively from vim's command line. I think this feature would do for now? More about the 'packages' feature http://vimcasts.org/episodes/packages/