vhakulinen / gnvim

GUI for neovim, without any web bloat
MIT License
1.85k stars 69 forks source link

How to get correct v:windowid? #168

Closed newptcai closed 3 years ago

newptcai commented 3 years ago

In my vimrc, I have the following line

autocmd GuiEnter * silent! call system('wmctrl -i -b add,maximized_vert,maximized_horz -r '.v:windowid)

This automatically maximizes gvim window on startup. But this does not work for gnvim, because v:windowid is 0 in gnvim. So is there a way to get the actual windowid?

vhakulinen commented 3 years ago

Gnvim doesn't currently report any window handles to nvim. So its not possible to get the window id of gnvim's window through v:windowid.