Skip to content

Instantly share code, notes, and snippets.

@nesbert
Last active December 12, 2015 01:48
Show Gist options
  • Select an option

  • Save nesbert/4693271 to your computer and use it in GitHub Desktop.

Select an option

Save nesbert/4693271 to your computer and use it in GitHub Desktop.

Revisions

  1. nesbert revised this gist Mar 9, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Shortcuts.md
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,7 @@

    # Packages

    ## AdvancedNewFile
    #### AdvancedNewFile

    ⌥ ⌘ N Create new files/folders...

  2. nesbert revised this gist Mar 9, 2013. 2 changed files with 23 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion Shortcuts.md
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,9 @@

    # Packages

    ⌥ ⌘ N AdvancedNewFile > Create new files/folders...
    ## AdvancedNewFile

    ⌥ ⌘ N Create new files/folders...

    # Keyboard Symbol List

    20 changes: 20 additions & 0 deletions beginhtml.sublime-snippet.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    <snippet>
    <content><![CDATA[
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>${1:Page Title}</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width">
    </head>
    <body>
    ${2:body...}
    </body>
    </html>
    ]]></content>
    <tabTrigger>beginhtml</tabTrigger>
    <scope>text.html - source</scope>
    <description>Boilerplate html.</description>
    </snippet>
  3. nesbert revised this gist Mar 9, 2013. 1 changed file with 7 additions and 3 deletions.
    10 changes: 7 additions & 3 deletions Shortcuts.md
    Original file line number Diff line number Diff line change
    @@ -6,9 +6,9 @@
    ⌥ ⌘ → Next File
    ⌥ ⌘ ← Previous File
    ⌥ ⌘ ← Switch Header/Implementation
    ⌘ 1 *Tab 1...*
    ⌘ 2 *Tab 2...*
    ⌘ 3 *Tab 3...*
    ⌘ 1 Goto Tab 1...
    ⌘ 2 Goto Tab 2...
    ⌘ 3 Goto Tab 3...
    ⌃ L Scroll to Selection
    ⌃ ⌥ ↑ Line Up
    ⌃ ⌥ ↓ Line Down
    @@ -18,6 +18,10 @@
    ⇧ ⌘ P Command Palette...
    ⌃ ` Console

    # Packages

    ⌥ ⌘ N AdvancedNewFile > Create new files/folders...

    # Keyboard Symbol List

    ⌘ is command
  4. nesbert revised this gist Mar 9, 2013. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions Shortcuts.md
    Original file line number Diff line number Diff line change
    @@ -6,9 +6,9 @@
    ⌥ ⌘ → Next File
    ⌥ ⌘ ← Previous File
    ⌥ ⌘ ← Switch Header/Implementation
    ⌘ 1 index.html
    ⌘ 2 Default/Preferences.sublime-settings
    ⌘ 3 User/Preferences.sublime-settings
    ⌘ 1 *Tab 1...*
    ⌘ 2 *Tab 2...*
    ⌘ 3 *Tab 3...*
    ⌃ L Scroll to Selection
    ⌃ ⌥ ↑ Line Up
    ⌃ ⌥ ↓ Line Down
  5. nesbert revised this gist Mar 9, 2013. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion Installation.md
    Original file line number Diff line number Diff line change
    @@ -19,4 +19,5 @@ Via Package Control (*shift + ⌘ + P*, type install + enter).
    3. Package Control: Install Package and search for “Modific”
    4. Package Control: Install Package and search for “TrailingSpaces”
    5. Package Control: Install Package and search for “Markdown Preview”
    6. Package Control: Install Package and search for “Theme - Soda”
    6. Package Control: Install Package and search for “Theme - Soda”
    7. Package Control: Install Package and search for “AdvancedNewFile”
  6. nesbert revised this gist Feb 1, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Shortcuts.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # Goto

    ⌘ P Goto Anything...
    ⌘ P Goto Anything...
    ⌘ R Goto Symbol...
    ⌃ G Goto Line...
    ⌥ ⌘ → Next File
  7. nesbert created this gist Feb 1, 2013.
    22 changes: 22 additions & 0 deletions Installation.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    # Set Up

    1. Download latest Sublime Text 2 ([Link](http://www.sublimetext.com/2))
    2. Install "Package Control" via console (*ctrl+`*)

    import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print('Please restart Sublime Text to finish installation')
    3. Restart Sublime Text 2
    4. OS X Command Line ([Link](http://www.sublimetext.com/docs/2/osx_command_line.html))

    ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl

    # Packages

    Via Package Control (*shift + ⌘ + P*, type install + enter).

    1. Package Control: Install Package and search for “CodeIntel”
    2. Package Control: Install Package and search for “SublimeLinter”
    3. Package Control: Install Package and search for “Modific”
    4. Package Control: Install Package and search for “TrailingSpaces”
    5. Package Control: Install Package and search for “Markdown Preview”
    6. Package Control: Install Package and search for “Theme - Soda”
    45 changes: 45 additions & 0 deletions Shortcuts.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,45 @@
    # Goto

    ⌘ P Goto Anything...
    ⌘ R Goto Symbol...
    ⌃ G Goto Line...
    ⌥ ⌘ → Next File
    ⌥ ⌘ ← Previous File
    ⌥ ⌘ ← Switch Header/Implementation
    ⌘ 1 index.html
    ⌘ 2 Default/Preferences.sublime-settings
    ⌘ 3 User/Preferences.sublime-settings
    ⌃ L Scroll to Selection
    ⌃ ⌥ ↑ Line Up
    ⌃ ⌥ ↓ Line Down

    # Tools

    ⇧ ⌘ P Command Palette...
    ⌃ ` Console

    # Keyboard Symbol List

    ⌘ is command
    ⌥ is option
    ⌃ is control
    ⇧ is shift
    ⇪ is caps lock
    ← is left arrow
    → is right arrow
    ↑ is up arrow
    ↓ is down arrow
    ⇥ is tab
    ⇤ is backtab
    ↩ is return
    ⌤ is enter
    ⌫ is delete
    ⌦ is forward delete
    ⇞ is page up
    ⇟ is page down
    ↖ is home
    ↘ is end
    ⌧ is clear
    ␣ is space
    ⎋ is escape
    ⏏ is eject
    14 changes: 14 additions & 0 deletions User - Preferences.sublime-settings.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    {
    "tab_size": 4,
    "translate_tabs_to_spaces": true,
    "draw_white_space": "all",

    "color_scheme": "Packages/Color Scheme - Default/Sunburst.tmTheme",
    "ignored_packages":
    [
    "Vintage"
    ],

    "soda_classic_tabs": false,
    "theme": "Soda Dark.sublime-theme"
    }