From ee9f6ba98542c00ec88ac407113fdd94e42ec8f3 Mon Sep 17 00:00:00 2001 From: katherine Date: Sat, 7 Jan 2017 10:20:12 -0700 Subject: add sonic-pi support to vim --- .vimrc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index cf4e336..fa8aec7 100644 --- a/.vimrc +++ b/.vimrc @@ -16,6 +16,7 @@ Plugin 'gmarik/Vundle.vim' "FILETYPES Plugin 'kchmck/vim-coffee-script' +Plugin 'luisjure/csound' Plugin 'elixir-lang/vim-elixir' Plugin 'plasticboy/vim-markdown' Plugin 'shmibs/mips.vim' @@ -41,6 +42,8 @@ Plugin 'sjl/gundo.vim' Plugin 'itchyny/lightline.vim' +Plugin 'dermusikman/sonicpi.vim' + Plugin 'tomtom/tcomment_vim' Plugin 'SirVer/ultisnips' @@ -248,7 +251,7 @@ autocmd FileType nim call Settings_nim() autocmd FileType perl call Settings_script() autocmd FileType php call Settings_html() autocmd FileType python call Settings_script() -autocmd FileType ruby call Settings_script() +autocmd FileType ruby call Settings_ruby() autocmd FileType rust call Settings_rust() autocmd FileType scss call Settings_css() autocmd FileType sh call Settings_script() @@ -368,6 +371,12 @@ function! Settings_script() nnoremap -- O# endfunction +function! Settings_ruby() + call Settings_script() + nnoremap r :execute "silent w !sonic_pi" + nnoremap s :execute "silent !sonic_pi stop" +endfunction + function! Settings_rust() call Settings_c() nnoremap -_ O/// -- cgit v1.2.3