问题
I would like to install the slim textmate bundle to sublime2. I went to this link slim textmate bundle
I cloned it to the pristinepackage(as per the nettuts website) but nothing happened.. What am I missing?.
回答1:
While it's tempting to install by copying directories, you should really use the Sublime Package Manager.
Install instructions are super easy - just copy and paste.
After installing you can:
- browse other packages
- install packages within Sublime
- update packages easily
One small hurdle to get over and Sublime becomes way more powerful.
回答2:
Try the following (it has worked for me):
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
git clone https://github.com/slim-template/ruby-slim.tmbundle.git Ruby-Slim.tmbundle
And then in Sublime Text 2, you should be able to find 'Ruby Slim' in the bottom right language selection. At worst, you may need to quit and restart Sublime.
回答3:
If you are using Mac OS with Sublime 3 you should use the Sublime 3 directory like this:
$ cd ~/Library/Application Support/Sublime Text 3/Packages/User
$ git clone git@github.com:slim-template/ruby-slim.tmbundle.git
PS: I tried to install syntax highlighting with the Sublime Package-Manager but it doesn´t work. Anyway, the two lines work for me. Maybe you should restart Sublime after cloning.
回答4:
That worked for me also, however i had to add User/ like so
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User/ git clone git://github.com/fredwu/ruby-slim-tmbundle.git Ruby-Slim.tmbundle
来源:https://stackoverflow.com/questions/8946760/how-to-install-slim-tm-bundle-in-sublime2