2012-10-31 52 views

回答

4

如果你的意思是當前窗口,然後這只是

function ToggleResize() 
    if exists('#AutoResize80') 
     augroup AutoResize80 
      autocmd! 
     augroup END 
     augroup! AutoResize80 
    else 
     augroup AutoResize80 
      autocmd! BufEnter * :vertical resize 80 
     augroup END 
    endif 
endfunction