How to install SublimeText 3 with Emmet (former Zen Coding) in Ubuntu

This is my first tutorial in english so if you find any errors among the text just ignore them! English is only my third spoken language after all.. This tutorial will show you how to install SublimeText 3 along with 2 plugins: Package Control and Emmet.

If you don't know what the hell is SublimeText or Emmet just google it.. Or you may want to watch this video..

SublimeText is just one hell of an IDE and Emmet is its must-have plugin.

This is the manual step by step installation method. There is an automated one but I prefer this one. This have been tested with Ubuntu 12.04 x64 but should work with any higher version. Let me know if it doesn't work for you.

So first of all let's download the .deb installation file from SublimeText's website and install SublimeText 3:

For Ubuntu x64:

sudo dpkg -i sublime-text_build-3059_amd64.deb

For Ubuntu x32:

sudo dpkg -i sublime-text_build-3059_i386.deb

SublimeText puts its plugins in a special folder in the .config folder in your home's directory; so let's just navigate to there:

You should run SublimeText at least a time so that directory is created for your user account; just run then close SublimeText.

cd ~/.config/sublime-text-3/Packages

Just there clone the Package Control plugin's git repo into a folder by the same name(Package Control):

git clone "Package Control"

Clone Emmet git repo into a folder called Emmet:

git clone Emmet

Emmet needs the Python Wrapper for Google V8 Javascript Engine so let's create a folder called PyV8 and move into it:

mkdir PyV8
cd PyV8

Download and extract the needed files as instructed here.

For x64 Ubuntu:

wget -c && \
unzip -d linux64-p3 && \
The -c switch in wget command is to resume the download if you stopped it.

For x32 Ubuntu:

wget -c && \
unzip -d linux32-p3 && \

By default SublimeText will still check for updates for the pyv8 so turn that off by creating this config.json file.

For x64 Ubuntu:

subl ~/.config/sublime-text-3/Packages/PyV8/linux64-p3/config.json

For x32 Ubuntu:

subl ~/.config/sublime-text-3/Packages/PyV8/linux32-p3/config.json

And put this into the file and save:

{"skip_update": true}

That's all folks.. Hope you enjoyed!

P.S: For the fast & furious among you:

Ubuntu x64 in one line command to do all of this:

wget -c && sudo dpkg -i sublime-text_build-3059_amd64.deb && subl && cd ~/.config/sublime-text-3/Packages && git clone "Package Control" && git clone Emmet && mkdir PyV8 && cd PyV8 && wget -c && unzip -d linux64-p3 && rm && subl ~/.config/sublime-text-3/Packages/PyV8/linux64-p3/config.json

Ubuntu x32 in one line command:

wget && sudo dpkg -i sublime-text_build-3059_i386.deb && subl && cd ~/.config/sublime-text-3/Packages && git clone "Package Control" && git clone Emmet && mkdir PyV8 && cd PyV8 && wget -c && unzip -d linux32-p3 && rm && subl ~/.config/sublime-text-3/Packages/PyV8/linux32-p3/config.json

Don't forget to paste this in the newly created file in SublimeText and save:

{"skip_update": true}

Lire aussi: