On Thu, 21 Oct 2010, Kana Natsuno wrote:
On Thu, 21 Oct 2010 20:00:13 +0900, Chris Sutcliffe wrote:
We already use the term "window" to mean a viewport on a buffer. So
that the name "v:windowid" may lead to a misunderstanding. It
should be renamed "v:xwindowid" etc to express that it's not related
to "window" (as a viewport on a buffer), shouldn't it?
What would be cool would be to v:windowid to return the gvim HWND in
the Windows world. At which point v:windowid would be appropriate
across OSes.
If so, we still have to take are on context around "window" to
distinguish what "window" means. IMHO, it's good to introduce a new
term to refer a "window" (of GUI application) to avoid confusion with
another "window" (as a viewort on a buffer).
Windows within Vim don't have IDs, per se; they have numbers (see :help
winnr() ). So, there's no existing window ID concept that this could be
mistaken for. If there were a window-number variable, I'd think it'd be
called 'w:number'.
If you're starting out with Vim scripting, you'll need to figure out the
terminology anyway (windows/buffers/tabs=tabpages/etc. which generally
have names & numbers [but not ID's]), so I don't think the name should
be changed.
--
Best,
Ben
--
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