Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Build and display .ronn files

  • Loading branch information...
commit 3d197333a287198a5f85a9e4441496caa34754e4 1 parent 3fcfd8d
@lmarburger authored
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"
Please sign in to comment.
Something went wrong with that request. Please try again.