reorganising furniture: softlink redirect for xcode build in new location
[supercollider.git] / editors / scvim / scvimrc
blob0bf02a00cd30a2201e0918b5985ff4b6f56fb613
1 "for scvim (supercollider vim)
3 "this indicates the -d varaible [rundir] for running sclang in
4 "default /tmp
5 "let $SCLANG_RUNDIR = "/home/user/scwork"
7 "set this to 0 if you don't want to kill the terminal with sclangpipe running
8 "in it when you exit vim
9 let g:sclangKillOnExit = 1
11 "this indicates the terminal emulator command you will use to launch
12 "sclangpipe_app
13 let g:sclangTerm = "xterm -e"
15 "the following has worked with osx
16 "let g:sclangTerm = "open -a /Applications/Utilities/Terminal.app"
17 "let g:sclangPipeApp = "/usr/local/bin/sclangpipe_app"
19 "this indicates the location to create a pipe for vim to communicate with
20 "sclang 
21 "defaults /tmp/sclang-pipe
22 "let g:sclangPipeLoc = "/tmp/sclang-pipe"
24 "this indicates a file where the process id for sclangpipe_app is stored
25 "default /tmp/sclangpipe_app-pid
26 "let g:sclangPipeAppPidLoc = "/tmp/sclangpipe_app-pid"
28 au BufWinEnter,BufNewFile,BufRead *.sc set filetype=supercollider
29 au BufWinEnter,BufNewFile,BufRead *.sc let &iskeyword="@,48-57,_,192-255" | runtime ftplugin/supercollider.vim
30 au BufWinEnter,BufNewFile,BufRead *.sc set sw=4 ts=4 autoindent "this line can be changed however you like
32 "sc help files
33 au BufWinEnter,BufNewFile,BufRead *.scd set filetype=supercollider
34 au BufWinEnter,BufNewFile,BufRead *.scd let &iskeyword="@,48-57,_,192-255,-,|" | runtime ftplugin/supercollider.vim
35 au BufWinEnter,BufNewFile,BufRead *.scd set sw=4 ts=4 autoindent "this line can be changed however you like
37 "required for matching
38 au Filetype supercollider,supercollider_help let b:match_skip = 's:scComment\|scString\|scSymbol'
39 au Filetype supercollider,supercollider_help let b:match_words = '(:),[:],{:}'
41 "indenting if you want it
42 "au BufEnter,BufWinEnter,BufNewFile,BufRead *.sc runtime indent/sc_indent.vim
45 "supercollider vim keybindings
46 "^R" gives contents of register "
48 au Filetype supercollider,supercollider_help nmap <buffer> K yiw :call SChelp("\x12"")<CR>
49 au Filetype supercollider,supercollider_help imap <buffer> \x1f \eyiw :call SChelp("\x12"")<CR>
50 au Filetype supercollider,supercollider_help nmap <buffer> \v yiw :call SCdef("\x12"")<CR>
51 au Filetype supercollider,supercollider_help imap <buffer> \v \eyiw :call SCdef("\x12"")<CR>
52 au Filetype supercollider,supercollider_help nmap <buffer> <F5> :call SClang_block()<CR>
53 au Filetype supercollider,supercollider_help imap <buffer> <F5> \e:call SClang_block()<CR>a
54 au Filetype supercollider,supercollider_help vmap <buffer> <F5> :call SClang_send()<CR>
55 au Filetype supercollider,supercollider_help vmap <buffer> <F6> :call SClang_send()<CR>
56 au Filetype supercollider,supercollider_help nmap <buffer> <F6> :call SClang_send()<CR>
57 au Filetype supercollider,supercollider_help imap <buffer> <F6> \e:call SClang_send()<CR>a
58 au Filetype supercollider,supercollider_help nmap <buffer> <F7> :call SClang_TempoClock_clear()<CR>
59 au Filetype supercollider,supercollider_help imap <buffer> <F7> \e:call SClang_TempoClock_clear()<CR>a
60 au Filetype supercollider,supercollider_help nmap <buffer> <F8> :call SClang_free("s")<CR>
61 au Filetype supercollider,supercollider_help imap <buffer> <F8> \e:call SClang_free("s")<CR>a
62 au Filetype supercollider,supercollider_help nmap <buffer> <F12> :call SClang_thisProcess_stop()<CR>
63 au Filetype supercollider,supercollider_help imap <buffer> <F12> \e:call SClang_thisProcess_stop()<CR>a
65 "end of scvim (supercollider vim)