Ubuntu18.04下安装Sublime Text3!

这几天安装了Ubuntu18.04,然后在里面安装Sublime Text3,结果各种问题!各种BUG!试了网上各种办法!尼玛!都是坑爹的啊!

最后还是楼主自己解决了……

废话不多说,直接按顺序执行下面命令开始安装!

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
  • 1
sudo apt-get install apt-transport-https
  • 1
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
  • 1
sudo apt-get update
  • 1
sudo apt-get install sublime-text
  • 1

执行完以上几步就安装成功了!接下来是解决在Ubuntu下sublime不能输入中文的问题! 
废话也不多说,按顺序执行以下命令!

git clone https://github.com/lyfeyaj/sublime-text-imfix.git
  • 1
cd sublime-text-imfix && ./sublime-imfix
  • 1

 

 

 

ubuntu14.04:

安装Sublime text3:

  1.  
    sudo add-apt-repository ppa:webupd8team/sublime-text-3
  2.  
    sudo apt-get update
  3.  
    sudo apt-get install sublime-text-dev

ubuntu18.04:

安装Sublime text3:

  1.  
    wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
  2.  
    echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
  3.  
    sudo apt-get update
  4.  
    sudo apt-get install sublime-text

安装Package Control插件:

安装成功后打开sublime text3,按ctrl + ~,在控制台中输入(一行一行输入):

  1.  
    import urllib.request, os;
  2.  
    pf = 'Package Control.sublime-package';
  3.  
    ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) );
  4.  
    open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())

即可按成Package Control插件的安装。

 

 

 

执行完之后重启sublime,就可以输入中文了!如果还不行,你下方留言咱们在讨论…..

posted @ 2018-08-27 16:56  Big_C  阅读(10511)  评论(7编辑  收藏  举报