let g:sclangKillOnExit = 1 let g:sclangTerm = "urxvt -e" let g:sclangPipeLoc = "/tmp/sclang-pipe" let g:sclangPipeAppPidLoc = "/tmp/sclangpipe_app-pid" let g:scFlash = 1 let g:scSplitDirection = "h" let g:scSplitSize = 25 au BufWinEnter,BufNewFile,BufRead *.sc set runtimepath+=/usr/share/vim/addons/ filetype=supercollider au BufWinEnter,BufNewFile,BufRead *.sc runtime ftplugin/supercollider.vim au BufWinEnter,BufNewFile,BufRead *.sc set sw=2 ts=2 autoindent "this line can be changed however you like "scd files: on open set runtimepath and start sclang au BufWinEnter,BufNewFile,BufRead *.scd set runtimepath+=/usr/share/vim/addons/ filetype=supercollider au BufWinEnter,BufNewFile,BufRead *.scd runtime ftplugin/supercollider.vim | SClangStart au BufWinEnter,BufNewFile,BufRead *.scd set sw=2 ts=2 autoindent "sc help files au BufWinEnter,BufNewFile,BufRead *.schelp set filetype=supercollider au BufWinEnter,BufNewFile,BufRead *.schelp runtime ftplugin/supercollider.vim au BufWinEnter,BufNewFile,BufRead *.schelp 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)