Sublime text 2

2012.01.04
在ruby-china.org上有看到推荐Sublime text 2,下载安装开发版,感觉不错!

三篇关于 Sublime text 2 的文章(by @Lucifr) 
 
在用RVM安装ruby 1.8.7后,安装gem时老是出现下面这个错误
.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/timeout.rb:60: [BUG] Segmentation fault
试了几次无果,后来查到这篇文章 http://jalada.co.uk/2011/07/24/lion-rvm-and-ruby-1-8-7-woes.html
$ rvm remove 1.8.7
$ rvm remove 1.8.7 --gems
$ rvm remove 1.8.7 --archive
$ CC=/usr/bin/gcc-4.2 rvm install 1.8.7
我MAC Xcode版本是4.2.1
 

TextMate 快捷键

2011.06.19
cmd + option + L    显示行号
cmd + F            页面搜索文字
cmd + shift + F        项目搜索文字
cmd + G            下一个搜索文字
cmd + shift + G    上一个搜索文字
cmd + option + F    替换一个
cmd + ctrl + F        全部替换
cmd + S            保存
cmd + option + S    全部保存    
cmd + shift + S        另存为。。。。
cmd + shift + ->        选中光标右面的内容
cmd + shift + <-        选中光标左面的内容
cmd + shift + L        选取一行信息
cmd + L             定位到某一行
cmd + option + ->    textmate项目中右面的标签
cmd + option + <-    textmate项目中左面的标签
cmd + 数字        选择某个标签
cmd + ->            光标回到行尾
cmd + <-            光标回到行首
cmd + ^            光标回到页首
cmd + 下箭头        光标回到页尾
cmd + /                注释一行
cmd + z            返回前一个内容
cmd + ]                增加缩进
cmd + [                减少缩进
cmd + T            打开项目下的文件
cmd + O            打开项目
cmd + N            新建文件
cmd + W                 关闭标签
cmd + X            剪切
cmd + C            复制
cmd + V            粘帖
cmd + M            最小法
cmd + F2            标记
cmd + shift + z        返回后一个内容
cmd + option + [        格式化代码
cmd + shift + T        当前文件中所有方法的
cmd + shift + W    关闭项目
cmd + option + L      显示行号
cmd + alt + [       代码格式化
cmd + shift + t 当前文件中所有的方法导航

ctrl + A                    光标回到行首
ctrl + E                    光标回到行尾
ctrl + L                    自动生成 =>
ctrl + w                    选取一个单词
ctrl + tab                    在菜单栏和页面切换
ctrl + 上箭头                向上移动下拉菜单
ctrl + 下箭头                向下移动下拉菜单
ctrl + cmd + 上箭头    向上移动整行
ctrl + cmd + 下箭头    向下移动整行
ctrl + shift + k 删除一行代码
ctrl + shift + >  (erb模板) 一键<%= %>,连续按会出现多种效果 
ctrl + option + cmd + V    从历史中选择内容粘帖

option|ctrl + ->            光标向右移动一个单词
option|ctrl + <-            光标向左移动一个单词
option|ctrl + shift + >   选中光标右面的单词
option|ctrl + shift + <   选中光标左面的单词

F2                        在标记间切换
tab     输入def按tab它会自动补全end
esc     以该文件中已经出现过的词做自动补全,可以按多次esc切换单词 
 
下载Theme 放至 ~/Library/Application%20Support/TextMate/Themes目录,重启TextMate!
以下推荐几款Theme!

Monokai Textmate color theme

http://www.monokai.nl/blog/wp-content/asdev/Monokai.tmTheme



_krTheme

By Kenneth Reitz

Download from GitHub



2morrow Night

By Chris Kempson

Download from GitHub



2morrow Night - Blue

By Chris Kempson

Download from GitHub



2morrow Night - Eighties

By Chris Kempson

Download from GitHub



Birds of Paradise

Download from JoeBergantine.com



Black Pearl (Based on Ruby Blue)

Download from GitHub



BlackLight

by Dennis Spring

(click to enlarge)

Download



Clouds Midnight

by Fred LeBlanc

A dark version of the light and airy Clouds theme with soothing colors on a nice charcoal background. Built for HTML, CSS, JavaScript and PHP.

Learn More & Download



Cobalt by Jacob Rus.

Based loosely on Slate. Available in the TextMate SVN repository.



Cool Glow

by mkdynamic

A refreshing, easy theme with cool tones. Very good for working with code for long periods!

Download (Blog post)

Check out my new theme, "Made of Code"



Creeper

by Aaron Smith

(download)



Erebus by Andrew Fricke

Erebus is a warm theme with an autumn'ish feel. Mainly tested for use with PHP, HTML, and CSS, but should work fine with most languages.

I was working on a pack to fit the seasons, but haven't come up with anything other than this theme that I'm happy with. Maybe in the future :]


(click to view larger image)

Download



Erebus Light by Andrew Fricke

Erebus Light is an edit of Erebus, which is a warm theme with an autumn'ish feel. Mainly tested for use with PHP, HTML, and CSS, but should work fine with most languages.


(click to view larger image)

Download



Fluidvision

by Bruce Clark

download



Glitter Bomb (In The Army Now)

by Aaron Smith

Colors are samples from army camo colors.

(download)



IR_Black

Based off of the Succulent and Brilliance Dull themes

Download (Blog Post)



IR_White

Based off of the IR_Black theme

Download (Blog Post)



Juicy by Edward Tsech

Download



Made of Code

by Mark Dodwell

Download (Blog Post)



Merbivore & Merbivore Soft

by Mig

Merbivore

Merbivore Soft

Download Merbivore.tmTheme

Download Merbivore Soft.tmTheme

Download a zip of both

If git is your thing, I've got a git repository of other theme's I've created or customized:

Github tm_themes repo



Midnight

For those who code in the dark.

Download



minimal Theme

by minimal design

Optimized for HTML, CSS, PHP and Javascript - should be ok in most other languages too.

Download



monoindustrial by Rob Rix

(rbrtrx in ##textmate)

Download

(the authors host http://solace.homeip.net is down so I'm stepping in - must keep distributing most awesome theme ever!)



Monokai color theme

(http://www.monokai.nl)

It's warm, colorful and pleasing to the eyes.

Download



Monokai Dark by Andrew Fricke

Monokai Dark is a quickly tweaked version of Monokai, changed to a darker background with a few color changes and tweaks for CSS.


(click to view larger image)

Download



Notebook

by Fred LeBlanc

A handcrafted, whimsical and free-flowing look. Built for HTML, CSS, JavaScript and PHP (but works with many others).

Learn More & Download



Resesif

by Soner Eker

Download from GitHub



Ruby Blue

Modeled after the code sections of http://ruby-lang.org:

GitHub (Blog)



RubyRobot Theme

by RubyRobot

Easy on the eye and optimized for working with Ruby on Rails projects.

Blog post Download



Sidewalk Chalk

by Adam Tucker

Dark theme with bright, but not painfully high-contrast colors.

Subject to changes on GitHub



Slate by Wilson Miner



Soylent Green

Blog Post

Download: Soylent Green.tmTheme



Spectacular PlasticCandyWrap (Spectacular Remix)

by Aaron Smith

(download)



Starlight

by Chris Poirier

Starlight is a simple, low contrast theme, primarily for Ruby and similar languages. It attempts to provide basic syntax highlighting without introducing a lot of visual noise.

Download



Succulent Theme (Loosely based on Sunburst)

(by Jamie van Dyke http://www.jamievandyke.com)

http://www.jamievandyke.com/assets/other/Succulent.tmTheme.zip



Sunburst by Soryu

Download (WebSite)



Swyphs Theme

by Arlo J

An easy on the eyes theme for Actionscript 3. Works best with good music.

Download



Texari by marios buttner

This theme is useful for work on Textpattern, XHTML, CSS and Javascript..

Because it is cloned from the Twilight Theme, it can be used in multi lang docs quite well....

Download



Text Ex Machina

by Matthew Ratzloff

Download



Media Upstream Themes

Font Used : AndaleMono 14 pt

Download from GitHub

 
命令:brew install ImageMagick
Zheng-MicllematoMacBook-Pro:~ zhengmiclle$ brew install ImageMagick
Warning: It appears you have MacPorts or Fink installed.
Software installed with MacPorts and Fink are known to cause problems.
If you experience issues try uninstalling these tools.
==> Checking out https://www.imagemagick.org/subversion/ImageMagick/trunk
==> ./configure --disable-osx-universal-binary --without-perl --prefix=/usr/local/Cellar/imagemagick/6.6.4-5 --disable-dependency-tracking --enable-shared -
==> make install
==> Caveats
Because ImageMagick likes to remove tarballs, we're downloading their
stable release from their SVN repo instead. But they only serve the
repo over HTTPS, and have an untrusted certificate, so we auto-accept
this certificate for you.

If this bothers you, open a ticket with ImageMagick to fix their cert.

Some tools will complain if the ghostscript fonts are not installed in:
  /usr/local/share/ghostscript/fonts
==> Summary
/usr/local/Cellar/imagemagick/6.6.4-5: 1288 files, 32M, built in 2.6 minutes
Zheng-MicllematoMacBook-Pro:~ zhengmiclle$

在Checking out之前可能还有去下载安装几个依赖包
 

Home Blog Delicious Github Flickr About Contact

© Miclle.Zheng . Powered by Forest Chalet