how to install slim tm bundle in sublime2

拟墨画扇 提交于 2019-12-04 01:44:01

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.

Victor Mota

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.

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.

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