This is a fork of https://github.com/sbl/scvim.
It is just my own tinkerings to get it working on Linux, which so far involves copying back some of the original scvim files.
WARNING!! WARNING!!
You will probably be better off using https://github.com/sbl/scvim or the original scvim (http://www.x37v.info/scvim/).
It is highly recommended to use pathogen (https://github.com/tpope/vim-pathogen) to keep your .vim paths clean. See the supplied helpfile how to setup pathogen if you haven't used it before.
Rename the whole scvim folder to "supercollider" and drop it into your "bundle" folder, e.g. "~/.vim/bundle/supercollider".
Or just do:
git clone git://github.com/ngm/scvim.git ~/.vim/bundle/supercollider
Symlink SCVim.sc somewhere, where SuperCollider can find it. On Ubuntu that would be
ln -s ~/.vim/bundle/supercollider/sc/SCVim.sc /usr/share/SuperCollider/ /Extensions/SCVim.sc
The rest should hopefully work automatically (that is if you have SuperCollider installed). Edit plugin/supercollider.vim to taste. Or override corresponding function in your ~/.vimrc.
To start open a file with the right extension :e foo.sc(d)
Enter :SClangStart
and a terminal should open with a running sclang session.
in normal/insert mode:
F5
to execute a block of code scvim will attempt to find the outermost bracketF6
to execute the current line of codeF8
to stop the server 's'F12
is a hard stop
in normal mode:
<leader>sd
on a word opens the corresponding helpfile<leader>sk
recompiles the sc library<leader>sj
on a word opens the class file<leader>si
on a word opens the implementations of ...<leader>sr
on a word opens the references to ...<leader>sm
on a global or environment variable lists the known methods
If for some reason vim can't find the path to the two launch scripts
start_pipe
and sc_dispatcher
you can set them manually in your .vimrc
e.g.:
let g:sclangPipeApp = "~/.vim/bundle/supercollider/bin/start_pipe"
let g:sclangDispatcher = "~/.vim/bundle/supercollider/bin/sc_dispatcher"
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.