Giter VIP home page Giter VIP logo

scvim's Introduction

SCVim

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.

Installation:

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.

Using it:

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.

Key commands:

in normal/insert mode:

  • F5 to execute a block of code scvim will attempt to find the outermost bracket
  • F6 to execute the current line of code
  • F8 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

Global variables:

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/.

scvim's People

Contributors

sbl avatar ngm avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.