From 7223cad768c1f60ce9a184759529fdcf5d8bf59e Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 3 Apr 2015 23:48:59 +0200 Subject: .scvimrc: Adding filetype support for .schelp files. Auto starting sclang upon opening .scd files. --- .scvimrc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to '.scvimrc') 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 ====================== -- cgit v1.2.3-70-g09d2