Skip to content

Sublime Text: Custom Keymappings for Markdown

Discover custom keymappings for Sublime Text tailored for Markdown editing, including shortcuts for inserting Bash code blocks and examples effortlessly.


Key Bindings: /home/wuseman/backup/sublime-text/Packages/User/Default (Linux).sublime-keymap
[
    {
        "keys": [",", "b", "b"],
        "command": "insert_snippet",
        "args": {"contents": "```bash\n$0\n```"}
    },
    {
        "keys": [",", "b", "c"],
        "command": "insert_snippet",
        "args": {"contents": "### $0\n\n```bash\n\n```"}
    },

    {
        "keys": [",", "m", "e"],
        "command": "insert_snippet",
        "args": {
            "contents": "!!! Example \"\"\n\n    ```bash\n    $0\n    ```"
        }
    }

]
Settings: ~/backup/sublime-text/Packages/User/Preferences.sublime-settings
{
    "ignored_packages":
    [
        "Vintage",
    ],
    "index_files": true,
    "color_scheme": "Packages/Seti_UX/Seti.tmTheme",
    "theme": "Seti_orig.sublime-theme",
    "font_face": "terminus",
    "font_size": 11,
    "word_wrap": "false",
    "ui_scale": 1.1,
    "hardware_acceleration": "opengl",
    "show_encoding": false,
    "show_line_endings": false,
    "show_indentation": true,
    "show_syntax": true,
    "line_numbers": false,
    "margin": 4,
    "tab_size": 4,
    "mini_diff": "auto",
    "spell_check": false,
    "auto_indent": true,
    "detect_indentation": true,
    "auto_match_enabled": true,
    "dictionary": "Packages/Language - English/en_US.dic",
    //
    // Application Behavior Settings
    //

    // Exiting the application with hot_exit enabled will cause it to close
    // immediately without prompting. Unsaved modifications and open files will
    // be preserved and restored when next starting.
    //
    // Hot exit has different modes to choose from:
    // - "always": Always perform a hot exit when the application exits. This
    //             includes when the last window is closed on relevant
    //             platforms.
    // - "only_on_quit": Only perform a hot exit when the application is asked
    //                   to exit, not when the last window is closed. This
    //                   setting is only used on Windows and Linux.
    // - "disabled": Disable hot exit.
    "hot_exit": "always",

}