Permalink
Browse files

g:dwm_master_pane

  - should change its value with DWM_GrowMaster() and DWM_ShrinkMaster()
    this is more dwm-like.
  • Loading branch information...
1 parent c2b9e48 commit 803e896ddef54e2bf2ca5c452706febc5d4a58d9 @coot coot committed Oct 1, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 plugin/dwm.vim
View
@@ -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()
@@ -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)

0 comments on commit 803e896

Please sign in to comment.