Ubuntu 安装 Sublime Text 3

最新版 3.2 build 3200 已经解决了中文输入问题,正常安装即可。

安装

Install the GPG key:

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -

Ensure apt is set up to work with https sources:

sudo apt-get install apt-transport-https

Select the channel to use:

  • Stable

    echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

  • Dev

    echo "deb https://download.sublimetext.com/ apt/dev/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

Update apt sources and install Sublime Text

sudo apt-get update
sudo apt-get install sublime-text sublime-merge

安装插件

插件来源:https://packagecontrol.io/installation

  1. Click the Preferences > Browse Packages… menu
  2. Browse up a folder and then into the Installed Packages folder
  3. Download Package Control.sublime-package and copy it into the Installed Packages directory
  4. Restart Sublime Text

配置代理

由于网站背墙,插件无法安装,此时需要配置一下 http proxy。

打开 Preferences > Package Settings > Package Control > Settings - User 菜单

编辑 Package Control.sublime-settings,添加两行:

// 改为真实IP和端口
"http_proxy": "http://127.0.0.1:8123",
"https_proxy": "http://127.0.0.1:8123"