tpope / vim-sleuth

sleuth.vim: Heuristically set buffer options
https://www.vim.org/scripts/script.php?script_id=4375
1.92k stars 86 forks source link

Why '^\s\+$ to skip line? #3

Closed vheon closed 11 years ago

vheon commented 11 years ago

on line 19th why not use ^\s*$ to skip empty line?

tpope commented 11 years ago

Either way would work fine. I guess * would allow more lines to short circuit, making for a miniscule speed increase.