Sublime Text Configuration

Installation

Download latest binary for any platform here.

Ubuntu Apt Repository

Add the sublime repository and install.
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
apt install apt-transport-https
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
apt update
apt install libgtk2.0-0 sublime-text

Important File Locations

Configuration files can be modified directly in sublime via preferences › settings.

Generally, you should never have to modify file directly; you can copy and paste directly with the menu settings.

Configuration

Copy and paste into user preferences preferences › settings.
 1{
 2  "font_face": "SF Mono Bold",
 3  "font_size": 12,
 4  "ignored_packages":
 5  [
 6    "Vintage"
 7  ],
 8  "rulers": [80],
 9  "word_wrap": false,
10  "tab_size": 2,
11  "translate_tabs_to_spaces": true
12}

Download settings here.

Note

Preferences can also be set by replacing the file directly: cp Preferences.sublime-settings <sublime config>/Packages/User

Automatically Installing Packages

Sublime will automatically keep packages up to date if they are listed as Installed. You can use this to automatically installed Package Control, as well as packages on a fresh installation. Some recommended packages are here.

Download the package control binary and add installed packages.
wget https://packagecontrol.io/Package%20Control.sublime-package <sublime config>/Installed\ Packages/
cp Package\ Control.sublime-settings <sublime config>/Packages/User

Download package control settings file.

Upon startup of sublime, it will automatically install the missing packages now listed in your installed packages.

Force Unix Line Endings on Save

This will save all files with unix lines endings regardless of platform or setting.

Downfile file here

Copy file to <sublime config>/Packages/User. Remove to disable.

Markdown Editing

Install MarkdownEditing and MonokaiC packages.

preferences › package settings › markdown editing › markdown GFM Settings – user › Markdown.sublime-settings

0600 user user <sublime config>/Preferences/User/Markdown.sublime-settings
1{
2  "color_scheme": "Packages/MonokaiC/themes/ME-MonokaiC.tmTheme",
3}

References

  1. Settings Files

  2. Customizing Settings Files

  3. Package Control Binary

  4. Using Sublime text from the command line