知识屋:更实用的电脑技术知识网站
所在位置:首页 > 操作系统 > linux

gvim use wmctrl in ubuntu

发布时间:2014-09-05 14:23:23作者:知识屋

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.
 
(免责声明:文章内容如涉及作品内容、版权和其它问题,请及时与我们联系,我们将在第一时间删除内容,文章内容仅供参考)
收藏
  • 人气文章
  • 最新文章
  • 下载排行榜
  • 热门排行榜