let g:sclangKillOnExit = 1 let g:sclangTerm = "urxvt -e" "let g:sclangTerm = "tmux send-keys -t 1" let g:sclangPipeLoc = "/tmp/sclang-pipe" let g:sclangPipeAppPidLoc = "/tmp/sclangpipe_app-pid" au BufWinEnter,BufNewFile,BufRead *.sc set filetype=supercollider au BufWinEnter,BufNewFile,BufRead *.sc let &iskeyword="@,48-57,_,192-255" | runtime ftplugin/supercollider.vim au BufWinEnter,BufNewFile,BufRead *.sc set sw=2 ts=2 autoindent "this line can be changed however you like "sc help files au BufWinEnter,BufNewFile,BufRead *.scd set filetype=supercollider au BufWinEnter,BufNewFile,BufRead *.scd let &iskeyword="@,48-57,_,192-255,-,|" | runtime ftplugin/supercollider.vim au BufWinEnter,BufNewFile,BufRead *.scd set sw=2 ts=2 autoindent "this line can be changed however you like " ================ Indentation ====================== set autoindent set smartindent set smarttab set shiftwidth=2 set softtabstop=2 set tabstop=2 set expandtab filetype plugin on filetype indent on " Display tabs and trailing spaces visually set list listchars=tab:\ \ ,trail:ยท set nowrap "Don't wrap lines set linebreak "Wrap lines at convenient points "required for matching au Filetype supercollider,supercollider_help let b:match_skip = 's:scComment\|scString\|scSymbol' au Filetype supercollider,supercollider_help let b:match_words = '(:),[:],{:}' "indenting if you want it "au BufEnter,BufWinEnter,BufNewFile,BufRead *.sc runtime indent/sc_indent.vim "supercollider vim keybindings "expand('') gives current word under cursor without having to yank au Filetype supercollider,supercollider_help nmap K :call SChelp(expand('')) au Filetype supercollider,supercollider_help imap  :call SChelp(expand('')) au Filetype supercollider,supercollider_help nmap :call SCdef(expand('')) au Filetype supercollider,supercollider_help imap :call SCdef(expand('')) au Filetype supercollider,supercollider_help nmap :call HelpBrowser(expand('')) au Filetype supercollider,supercollider_help imap :call HelpBrowser(expand(''))a au Filetype supercollider,supercollider_help vmap :call HelpBrowser(expand('')) au Filetype supercollider,supercollider_help nmap :call SClang_block() au Filetype supercollider,supercollider_help imap :call SClang_block()a au Filetype supercollider,supercollider_help vmap :call SClang_send() au Filetype supercollider,supercollider_help vmap :call SClang_send() au Filetype supercollider,supercollider_help nmap :call SClang_send() au Filetype supercollider,supercollider_help imap :call SClang_send()a au Filetype supercollider,supercollider_help nmap :call SClang_TempoClock_clear() au Filetype supercollider,supercollider_help imap :call SClang_TempoClock_clear()a au Filetype supercollider,supercollider_help nmap :call SClang_free("s") au Filetype supercollider,supercollider_help imap :call SClang_free("s")a au Filetype supercollider,supercollider_help nmap :call SClang_thisProcess_stop() au Filetype supercollider,supercollider_help imap :call SClang_thisProcess_stop()a "end of scvim (supercollider vim)