gvim use wmctrl in ubuntu


gvim use wmctrl in ubuntu
 
    Use the wmctrl tools could maximize the windows of gvim in ubuntu. But I find a small issue for that.
Here is the wrong script:
[plain]
if has("win32")  
    au GUIEnter * simalt ~x  
else  
    au GUIEnter * call MaximizeWindow()  
endif  
  
function! MaximizeWindow()  
    silent !wmctrl -r :ACTIVE: -b add, maximized_vert,maximized_horz  
endfunction  
 
You could see that between "," and "maximized_vert" on line 8, there is a blank. It's the reason why the script can't works. So I remove the blank and it woks fine. So strange, because this scripts works well on my mac mini.
 

相关内容

    暂无相关文章