aboutsummaryrefslogtreecommitdiffstats
path: root/.scvimrc
diff options
context:
space:
mode:
Diffstat (limited to '.scvimrc')
-rw-r--r--.scvimrc11
1 files changed, 8 insertions, 3 deletions
diff --git a/.scvimrc b/.scvimrc
index 67fb207..7e974a2 100644
--- a/.scvimrc
+++ b/.scvimrc
@@ -13,10 +13,15 @@ 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
+"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 let &iskeyword="@,48-57,_,192-255,-,|" | runtime ftplugin/supercollider.vim | SClangStart
+au BufWinEnter,BufNewFile,BufRead *.scd set sw=2 ts=2 autoindent
+
"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
+au BufWinEnter,BufNewFile,BufRead *.schelp set filetype=supercollider
+au BufWinEnter,BufNewFile,BufRead *.schelp let &iskeyword="@,48-57,_,192-255,-,|" | runtime ftplugin/supercollider.vim
+au BufWinEnter,BufNewFile,BufRead *.schelp set sw=2 ts=2 autoindent "this line can be changed however you like
" ================ Indentation ======================