在 2014年12月19日星期五 UTC+8下午2:18:46,ZyX写道:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> On December 18, 2014 11:01:49 PM EAT, Lubos Pintes <[email protected]>
> wrote:
> >Hi,
> >I tried to be as clear as possible, but I am realizing that I was not
> >clear enough, sorry about that.
> >I talked about text window, not GUI window.
> >For example, if I issue the ":split file" command, the window area is
> >split, this doesn't affect the GUI window. At least I think so.
> >I am using gvim. I am trying to make it accessible, or better said,
> >usable with screen reader, NVDA in my case.
> >I am communicating with gvim through its OLE interface. I can use
> >information which eval can provide, but it is not enough for proper
> >usability.
> >I had some success, but I need to handle a situation when several
> >windows are on the screen. Again, when text area is split to several
> >windows.
> >I don't care about GUI window, it is simulating the console. I am only
> >interested in text area. I need to identify text window dimensions. So
> >for example, if only one window is displayed, it starts on (1, 1) and
> >has a width of 80 and height of 25. Also it has a number 1.
> >But what if I split the text area say to 4 windows? How can I
> >algorithmically determine window positions?
> >Hopefully I explained what I need. And if I am stupid and I overlooked
> >something obvious, then sorry again.
> >
> >Dňa 18. 12. 2014 o 17:19 toothpik napísal(a):
> >> On Thu, Dec 18, 2014 at 11:18:28AM +0100, Lubos Pintes wrote:
> >>> Hello,
> >>> We have functions winwidth(winnr) and winheight(winnr).
> >>> I thing that winleft(winnr) and wintop(winnr), are missing. Perhaps
> >>> I greatly overlooked something, I don't know how to determine where
> >>> the window with concrete winnr starts.
> >>> Any help how to determine window coordinates greatly appreciated.
> >>> Thanks
> >>
> >> if you know all those win_ functions I'm surprised you don't also
> >know
> >> about the winpos command -- without arguments it tells you the
> >current
> >> (gui) window position -- with x and y arguments it will position the
> >> window for you
> >>
> >> see
> >>
> >> :h winpos
> >>
> >> for the gory details
> >>
> >
> >
> >--
> >--
> >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
> >
> >---
> >You received this message because you are subscribed to the Google
> >Groups "vim_dev" group.
> >To unsubscribe from this group and stop receiving emails from it, send
> >an email to [email protected].
> >For more options, visit https://groups.google.com/d/optout.
>
> You may use pyeval('vim.current.window.col') and
> pyeval('vim.current.window.row'), same with py3eval. Requires +python
> (+python3 for py3eval) and running :python import vim (:python3 import vim)
> prior to using function.
>
> You may check out the code used for implementing __getattribute__ slot
> function for vim.Window object to create a patch for wincol() and winrow().
> At the time I was writing patch that added col and row vim.Window attributes
> nothing like this existed in VimL.
> -----BEGIN PGP SIGNATURE-----
> Version: APG v1.1.1
>
> iQI1BAEBCgAfBQJUk8MyGBxaeVggPHp5eC52aW1AZ21haWwuY29tPgAKCRCf3UKj
> HhHSvs5REACmUHqhxHCG1YNjxiyf4o8W/16rlGfpHxSzR80hHwVz4KhwcCZ96zSV
> CCXRdbH8VfKF7ttq/Io5nzakUDBuheIkRtSOshliQfG/1ESHMZZbq29ZBeU1ujUo
> b8eQkEP57J0Hc4WkQ2aC2PEEkI6KUIYofQJiKxeUp+JHBu/Vxgvcm4Hm7JMzvDUW
> cY5UiMPR3vRpTd/ML3z6sFwzmfpUJtYC1Qa+Zqe1q0cqceDTF2nh9rtBGqnw6Cj2
> D7cjIysudQvEw2beTxzhzSpNi6pPMc15LAjlBeNXqJvopR/sZl18celw00EvuxaU
> J2rW3nG0Muc0QLI6MZFis6jRlmUeMTYWLO5okI74hLzABAKMtAPz6BuPePF0B3VR
> APa3dFE2FpgUgENETlRpK9Acn1aIx1mqHRLFM92CkkK5y0TPUxWmhfUkRktEzgOc
> AT4oQVOVeSRX4gReT8IkOBjUM40XZhYqb7//C91Vt9lBC5qdjw0SZtyPi1A0e7dF
> xsZ7v4rkogXRA5HnfpoxHxb6j6Ywu/paXLsXBVBk0elJcWPF+KhAht7Vjzg5fTGA
> Y9gqyP2oi2IzuV1bOGb9oWsfDrGp6X6xbzWW9NwGMcVKZuSXY3gHYsrC35YGFwwr
> iMXKC3DEqEug5K6IrHvxnUd5rYwjGkCDAOOVKcWYr5H982J/APr1UA==
> =Ijii
> -----END PGP SIGNATURE-----
Hello, any update on this topic? I want to use vim script to get the windows
position instead of using `pyeval('vim.current.window.col') `.
--
--
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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.