Permalink
Browse files

Equalize splits when resizing Vim

  • Loading branch information...
1 parent 03b9ca3 commit 0188d1c2fcf7b279e7aeff9e7df7564e622b7fe9 @spicycode committed Nov 26, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 auto_commands.vim
View
@@ -7,3 +7,5 @@ autocmd BufRead,BufNewFile {*.json}
" Clear trailing whitespace
autocmd BufWritePre {*.coffee,*.js} :%s/\s\+$//e
+" Resize splits when the window is resized
+autocmd VimResized * exe "normal! \<c-w>="

0 comments on commit 0188d1c

Please sign in to comment.