ap / vim-css-color

Preview colours in source code while editing
http://www.vim.org/scripts/script.php?script_id=5056
MIT License
1.77k stars 78 forks source link

Use let and lockvar instead of const for vim <8.1.1539 compatibility #157

Closed jbylsma closed 3 years ago

jbylsma commented 3 years ago

Addresses #156.

ap commented 3 years ago

I don’t really see a point in using lockvar here since these are script-local variables anyway. I didn’t really use const for any principled reason, I just didn’t think about it. Nevertheless, I appreciate the effort to send a patch – thank you for doing that.