1.使用命令
sudo apt-get install wmctrl #安装wmctrl
2.在~/.vimrc中添加
function Maximize_Window()
silent !wmctrl -r :ACTIVE: -b add,maximized_vert,maximized_horz
endfunction
3.在~/.bashrc中添加
alias gvim='gvim -c "call Maximize_Window()"'
1.使用命令
sudo apt-get install wmctrl #安装wmctrl
2.在~/.vimrc中添加
function Maximize_Window()
silent !wmctrl -r :ACTIVE: -b add,maximized_vert,maximized_horz
endfunction
3.在~/.bashrc中添加
alias gvim='gvim -c "call Maximize_Window()"'