how to install slim tm bundle in sublime2

孤街浪徒 提交于 2019-12-12 08:25:12

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!