Hello everyone,
Does VIM (v7) have a way to tell me the screen width from an OS point of view?
I like to position gvim in a specific place on my screen and I use computers
with different resolutions. Right now I shell out via a system call and get
the info, but it would be much cleaner and more portable to do so without
calling an external program.
Any ideas?
Right now, my little function (triggered by the GUIEnter event) simply does:
function! PlaceWindow()
let ScreenWidth = system('echo [EMAIL PROTECTED]')
if ScreenWidth == 1600
winpos 812 0
elseif ScreenWidth == 1280
winpos 492 0
elseif ScreenWidth == 1024
winpos 237 0
endif
endfunction
It works, but would be nicer to have it all native.
Many thanks,
Michael