aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2015-04-03 23:48:59 +0200
committerDavid Runge <dave@sleepmap.de>2015-04-03 23:48:59 +0200
commit7223cad768c1f60ce9a184759529fdcf5d8bf59e (patch)
tree0435eab9f1954646142c283e4306d58e12eabf98
parent5094f094bc09bc0add959a19bebb53db5466cfd7 (diff)
downloaddotfiles-7223cad768c1f60ce9a184759529fdcf5d8bf59e.tar.gz
dotfiles-7223cad768c1f60ce9a184759529fdcf5d8bf59e.tar.bz2
dotfiles-7223cad768c1f60ce9a184759529fdcf5d8bf59e.tar.xz
dotfiles-7223cad768c1f60ce9a184759529fdcf5d8bf59e.zip
.scvimrc: Adding filetype support for .schelp files. Auto starting sclang upon opening .scd files.
-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 ======================