2012年12月27日木曜日 13時24分23秒 UTC+9 Shougo: > I created the patch for adding default value argument feature. > I think this feature is useful to write Vim script. > > Below is vim script for testing the feature. > > ----------------------- > > echomsg getbufvar(1, 'foo', 'var') > echomsg getwinvar(1, 'foo', 'var') > echomsg gettabvar(1, 'foo', 'var') > echomsg gettabwinvar(1, 1, 'foo', 'var') > > ----------------------- > > If you applied the patch to Vim, you get "var" output. > I tested the patch in Vim 7.3.762 and it works.
You can get same behavior using get() hack. But I think the feature is more clealy. -------------------------- echomsg get(getbufvar(1, ""), 'foo', 'var') -------------------------- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
