tar xf Sublime\ Text\ 2.0.1.tar.bz2
sudo mv Sublime\ Text\ 2 /usr/lib/
3.若是想在終端中使用sublime 前端
sudo ln -s /usr/lib/Sublime\ Text\ 2/sublime_text /usr/bin/sublime
4.建立能夠在Unity中使用的圖標 web
sudo sublime /usr/share/applications/sublime.desktop將下面的內容paste進來
[Desktop Entry] Version=1.0 Name=Sublime Text 2 # Only KDE 4 seems to use GenericName, so we reuse the KDE strings. # From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413. GenericName=Text Editor Exec=sublime Terminal=false Icon=/opt/Sublime Text 2/Icon/48x48/sublime_text.png Type=Application Categories=TextEditor;IDE;Development X-Ayatana-Desktop-Shortcuts=NewWindow [NewWindow Shortcut Group] Name=New Window Exec=sublime -n TargetEnvironment=Unity
sudo sublime /usr/share/applications/defaults.list(注:根據實際狀況,本身選擇合適路徑,本人親測能夠用.可是呢,發現中文輸入不進去,- -!這個又要解決了.你們斟酌) 天外音:當寫完這個博客不久,我發現其實gedit是灰常好用的.哈哈.大家能夠本身去看.