The strwidth function was added in Vim 7.3. This commit defines a wrapper function that uses strwidth if it exists, otherwise it uses the len function for older versions of Vim.
I don't have much experience with Vim script so this might not be the best way to fix this.
The strwidth function was added in Vim 7.3. This commit defines a wrapper function that uses strwidth if it exists, otherwise it uses the len function for older versions of Vim.
I don't have much experience with Vim script so this might not be the best way to fix this.