Posted: July 6, 2019
Updated: December 23, 2022
I love Sublime Text 3. It is reliable, extremely configurable, cross-platform, and very fast.
I can open a file with 50,000 lines in a couple of seconds on a laptop with 4gb of RAM.
This is a guide to how I set up Sublime Text 3 on Arch Linux. I use Neovintageous for Vim keybinds and the Oceanic Next color scheme.
1. Install Sublime
Sublime has a pacman repository available, so installation is easy: https://www.sublimetext.com/docs/3/linux_repositories.html#pacman
After installation, add your license key:
Help > Enter License
2. Install Packages
First install Package Control inside Sublime:
Ctrl + Shift + P > Install
Then, to install a package, do the same thing:
Ctrl + Shift + P > Package Control: Install Package
These are my favorite packages:
- FileDiffs
- JsPrettier
- MarkdownPreview
- Naomi
- NeoVintageous
- Oceanic Next Color Scheme
- Pretty JSON
- Sass
- Sublack
- SublimeLinter
- SublimeLinter-addon-black-for-flake
- SublimeLinter-eslint
- SublimeLinter-flake8
- TypeScript
- WordCount
3. Paste user settings
These are my preferred user settings:
{
"always_prompt_for_file_reload": true,
"auto_close_tags": false,
"auto_complete_commit_on_tab": true,
"auto_match_enabled": false,
"caret_style": "solid",
"color_scheme": "Packages/Oceanic Next Color Scheme/Oceanic Next.tmTheme",
"default_line_ending": "unix",
"detect_indentation": false,
"drag_text": false,
"draw_indent_guides": false,
"ensure_newline_at_eof_on_save": true,
"font_face": "Source Code Pro",
"font_size": 13,
"highlight_line": true,
"highlightedyank_duration": 150,
"hot_exit": false,
"ignored_packages":
[
"Six",
"Vintage",
"Vintageous"
],
"neovintageous_build_version": 11100,
"remember_open_files": true,
"scroll_past_end": false,
"theme": "Default.sublime-theme",
"trim_trailing_white_space_on_save": true,
"vintageous_handle_keys":
{
"<C-n>": false,
"<C-o>": false,
"<C-r>": false,
"<C-s>": false,
"<C-w>": false,
"<C-y>": false
},
"vintageous_reset_mode_when_switching_tabs": false,
"vintageous_use_sys_clipboard": true,
"wide_caret": true,
"word_wrap": true
}
4. Paste keybinds
alt+topens a fuzzy file switcherctrl+alt+jexpands JSONctrl+alt+mminimizes JSON
The fuzzy file switcher needs to be specified manually:
[
{
"keys": ["alt+t"],
"command": "show_overlay",
"args": {
"overlay": "goto",
"show_files": true
}
}
]
5. Configure other settings
I don’t like the minimap:
View > Hide Minimap
JsPrettier Config:
{
"additional_cli_args": { "--config-precedence": "prefer-file" },
"auto_format_on_save": true,
"disable_prettier_cursor_offset": true
}
Sublack Config:
{
"black_on_save": true
}
Neovintageous: Use the Command pallete to access NeoVintageous: Open RC File
Set the RC file to:
set smartcase
set ignorecase