vim-quotable
vim-quotable copied to clipboard
Optimize leading character detection in s:educateQuotes()
Though it performs fine on my 2010 MBP with a large (20KB) soft-wrap paragraph, it nevertheless is the most performance-critical code in this plugin and could have problems on slower machines.
Optimization is tricky because the internal representation is bytes where Unicode characters will have more than one byte per character.