ap / vim-buftabline

Forget Vim tabs – now you can have buffer tabs
http://www.vim.org/scripts/script.php?script_id=5057
MIT License
782 stars 75 forks source link

Make buftabline work for older versions of vim #14

Closed alaaibrahim closed 7 years ago

alaaibrahim commented 8 years ago

The dependency on vim 703, is because of the function strwidth, so by replacing this function with strlen when the function is not available, will make it work.

ap commented 7 years ago

As of a1f6c24aed2dfe2e3db5122de858b83a1eab987f the plugin will work about as well as one can hope for on Vims older than 7.3, all the way back to 7.0. Sorry it took me so long to figure out a reasonable(ish) approach.

(Note to self: this PR was originally part of #12, so discussion of the issues happened there.)