Permalink
Browse files

Build and display .ronn files

  • Loading branch information...
1 parent 3fcfd8d commit 3d197333a287198a5f85a9e4441496caa34754e4 @lmarburger committed Aug 24, 2013
Showing with 7 additions and 0 deletions.
  1. +7 −0 vimrc
View
7 vimrc
@@ -188,6 +188,13 @@ augroup SizeWindow
autocmd WinEnter * call SizeWindow()
augroup END
+augroup Ronn
+ autocmd!
+ autocmd BufNewFile,BufReadPost,BufEnter *.ronn nmap <leader>> :silent :!clear<cr>:w<cr>:!gronn<cr>
+ autocmd BufLeave *.ronn nmap <leader>> :silent :!clear<cr>:w<cr>:!ruby -Ilib %<cr>
+augroup END
+
+
function! SizeWindow()
if winwidth(winnr()) < 79
exec "vertical resize 79"

0 comments on commit 3d19733

Please sign in to comment.