mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-02-02 20:28:30 +08:00
c3afedbe22
getbufvar accepts only two arguments in Vim 7.3 (at least the one included in OS X 10.11.5), and returns an empty string when the buffer or variable does not exist: getbufvar({buffer}, {variable}). Vim 7.4 has extended the built-in function so that it additionally accepts an optional argument which determines the default return value: getbufvar({buffer}, {variable}, [, {default}]). When the third argument is not given and the buffer or variable does not exists, getbufvar returns an empty string as before. getbufvar({buffer}, {variable}) works in both Vim 7.3 and 7.4, and is practically equivalent to getbufvar({buffer}, {variable}, 0) because an empty string is coerced to 0 if necessary. |
||
---|---|---|
.. | ||
NERD_commenter.vim |