diff options
author | katherine <shmibs@shmibbles.me> | 2017-01-07 10:20:12 -0700 |
---|---|---|
committer | katherine <shmibs@shmibbles.me> | 2017-01-07 10:20:12 -0700 |
commit | ee9f6ba98542c00ec88ac407113fdd94e42ec8f3 (patch) | |
tree | 13df5457031189b32e7a2eb9df338368910ed451 | |
parent | ce9dfe8c7e439fb82251259f6c4ac6141b83ed45 (diff) | |
download | dotfiles-ee9f6ba98542c00ec88ac407113fdd94e42ec8f3.tar.gz |
add sonic-pi support to vim
-rw-r--r-- | .vimrc | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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 <buffer> -- O#<Space> endfunction +function! Settings_ruby() + call Settings_script() + nnoremap <leader>r :execute "silent w !sonic_pi"<CR> + nnoremap <leader>s :execute "silent !sonic_pi stop"<CR><C-l> +endfunction + function! Settings_rust() call Settings_c() nnoremap <buffer> -_ O///<Space> |