Skip to content

Commit

Permalink
Merge pull request #39 from coot/master
Browse files Browse the repository at this point in the history
g:dwm_master_pane_width
  • Loading branch information
Stanislas Polu committed Oct 1, 2012
2 parents c2b9e48 + 803e896 commit 4bbeac6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions plugin/dwm.vim
Expand Up @@ -111,6 +111,11 @@ function! DWM_GrowMaster()
else
exec "vertical resize -1"
endif
if exists("g:dwm_master_pane_width") && g:dwm_master_pane_width
let g:dwm_master_pane_width += 1
else
let g:dwm_master_pane_width = ((&columns)/2)+1
endif
endfunction

function! DWM_ShrinkMaster()
Expand All @@ -119,6 +124,11 @@ function! DWM_ShrinkMaster()
else
exec "vertical resize +1"
endif
if exists("g:dwm_master_pane_width") && g:dwm_master_pane_width
let g:dwm_master_pane_width -= 1
else
let g:dwm_master_pane_width = ((&columns)/2)-1
endif
endfunction

function! DWM_Rotate(clockwise)
Expand Down

0 comments on commit 4bbeac6

Please sign in to comment.