Skip to content

Instantly share code, notes, and snippets.

@sjwilliams
Forked from lucasfais/gist:1207002
Created October 17, 2012 01:03
Show Gist options
  • Save sjwilliams/3903157 to your computer and use it in GitHub Desktop.
Save sjwilliams/3903157 to your computer and use it in GitHub Desktop.

Revisions

  1. sjwilliams revised this gist Nov 20, 2012. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -13,6 +13,8 @@ h2. Movement

    | ⌘← | go to beginning of line (conflicts with default Mission Control shortcut) |
    | ⌘→ | go to end of line (conflicts with default Mission Control shortcut) |
    | *⌃↑ | scroll one line up |
    | *⌃↓ | scroll one line down |
    | ⌘↑ | go to start of file |
    | ⌘↓ | go to end of file |
    | *⌘R* | go to methods |
  2. sjwilliams revised this gist Nov 20, 2012. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -13,6 +13,8 @@ h2. Movement

    | ⌘← | go to beginning of line (conflicts with default Mission Control shortcut) |
    | ⌘→ | go to end of line (conflicts with default Mission Control shortcut) |
    | ⌘↑ | go to start of file |
    | ⌘↓ | go to end of file |
    | *⌘R* | go to methods |
    | *⌃G* | go to line |
    | *⌃M* | jump to matching brackets |
  3. sjwilliams revised this gist Nov 20, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -11,8 +11,8 @@ h2. General

    h2. Movement

    | ⌘← | go to beginning of line |
    | ⌘→ | go to end of line |
    | ⌘← | go to beginning of line (conflicts with default Mission Control shortcut) |
    | ⌘→ | go to end of line (conflicts with default Mission Control shortcut) |
    | *⌘R* | go to methods |
    | *⌃G* | go to line |
    | *⌃M* | jump to matching brackets |
  4. sjwilliams revised this gist Nov 20, 2012. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,8 @@ h2. General

    h2. Movement

    | ⌘- | go to beginning of line |
    | ⌘← | go to beginning of line |
    | ⌘→ | go to end of line |
    | *⌘R* | go to methods |
    | *⌃G* | go to line |
    | *⌃M* | jump to matching brackets |
  5. sjwilliams revised this gist Nov 20, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -10,6 +10,7 @@ h2. General
    | *⌘⇧N* | new window (useful for new project) |

    h2. Movement

    | ⌘- | go to beginning of line |
    | *⌘R* | go to methods |
    | *⌃G* | go to line |
  6. sjwilliams revised this gist Nov 20, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,7 @@ h2. General
    | *⌘⇧N* | new window (useful for new project) |

    h2. Movement
    | ⌘<- | go to beginning of line |
    | ⌘- | go to beginning of line |
    | *⌘R* | go to methods |
    | *⌃G* | go to line |
    | *⌃M* | jump to matching brackets |
  7. sjwilliams revised this gist Nov 20, 2012. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -4,13 +4,17 @@ h2. General

    | *⌘T* | go to file |
    | *⌘⌃P* | go to project |
    | *⌘R* | go to methods |
    | *⌃G* | go to line |
    | *⌘KB* | toggle side bar |
    | *⌘⇧P* | command prompt |
    | *⌃ `* | python console |
    | *⌘⇧N* | new window (useful for new project) |

    h2. Movement
    | ⌘<- | go to beginning of line |
    | *⌘R* | go to methods |
    | *⌃G* | go to line |
    | *⌃M* | jump to matching brackets |

    h2. Editing

    | *⌘L* | select line (repeat select next lines) |
    @@ -33,10 +37,6 @@ h2. Editing
    | *⌘U* | soft undo (movement undo) |
    | *⌘⇧U* | soft redo (movement redo) |

    h2. Movement

    | *⌃M* | jump to matching brackets |

    h2. Vintage Mode

    | *:w* | save file |
  8. sjwilliams revised this gist Nov 20, 2012. 1 changed file with 5 additions and 2 deletions.
    7 changes: 5 additions & 2 deletions gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -30,10 +30,13 @@ h2. Editing
    | *⌘Y* | redo or repeat |
    | *⌘⇧V* | past and ident |
    | *⌃ space* | autocomplete (repeat to select next suggestion) |
    | *⌃M* | jump to matching brackets |
    | *⌘U* | soft undo (movement undo) |
    | *⌘⇧U* | soft redo (movement redo) |

    h2. Movement

    | *⌃M* | jump to matching brackets |

    h2. Vintage Mode

    | *:w* | save file |
    @@ -90,4 +93,4 @@ h2. Marks
    | *⌘K space* | set mark // ⌘K; for me |
    | *⌘KW* | delete from cursor to mark |
    | *⌘KA* | select from cursor to mark |
    | *⌘KG* | clear mark |
    | *⌘KG* | clear mark |
  9. sjwilliams revised this gist Nov 20, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -17,7 +17,7 @@ h2. Editing
    | *⌘D* | select word (repeat select others occurrences in context for multiple editing) |
    | *⌃⇧M* | select content into brackets |
    | *⌘⇧↩* | insert line before |
    | *⌘↩* | inter line after |
    | *⌘↩* | insert line after |
    | *⌃⇧K* | delete line |
    | *⌘KK* | delete from cursor to end of line |
    | *⌘K⌫* | delete from cursor to start of line |
  10. Josh Williams revised this gist Oct 17, 2012. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -48,6 +48,13 @@ h2. Vintage Mode
    | *⇧h* | move cursor to the first line of screen |
    | *⇧m* | move cursor to the middle of the screen |
    | *⇧l* | move cursor to the bottom of the screen |
    | *i* | insert before cursor |
    | *⇧i* | insert at the beginning of current line |
    | *a* | append after cursor |
    | *⇧a* | append to the end of the current line |
    | *o* | insert on a new line below |
    | *⇧O* | insert on a new line above |
    | *r* | overwrite current and return to command mode |

    h2. XML/HTML

  11. Josh Williams revised this gist Oct 17, 2012. 1 changed file with 13 additions and 0 deletions.
    13 changes: 13 additions & 0 deletions gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -36,6 +36,19 @@ h2. Editing

    h2. Vintage Mode

    | *:w* | save file |
    | *j* | move cursor up one line |
    | *k* | move cursor down one line |
    | *h* | move cursor one position right |
    | *l* | move cursor one position left |
    | *e* | move cursor to the end of word |
    | *0* | move cursor to beginning of line |
    | *^* | move cursor to frst non-whitespace character on the line |
    | *$* | move cursor to end of line |
    | *⇧h* | move cursor to the first line of screen |
    | *⇧m* | move cursor to the middle of the screen |
    | *⇧l* | move cursor to the bottom of the screen |

    h2. XML/HTML

    | *⌘⇧A* | select content into tag |
  12. Josh Williams revised this gist Oct 17, 2012. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -34,6 +34,8 @@ h2. Editing
    | *⌘U* | soft undo (movement undo) |
    | *⌘⇧U* | soft redo (movement redo) |

    h2. Vintage Mode

    h2. XML/HTML

    | *⌘⇧A* | select content into tag |
  13. @lucasfais lucasfais revised this gist Sep 20, 2011. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -31,6 +31,8 @@ h2. Editing
    | *⌘⇧V* | past and ident |
    | *⌃ space* | autocomplete (repeat to select next suggestion) |
    | *⌃M* | jump to matching brackets |
    | *⌘U* | soft undo (movement undo) |
    | *⌘⇧U* | soft redo (movement redo) |

    h2. XML/HTML

  14. @lucasfais lucasfais revised this gist Sep 20, 2011. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -9,6 +9,7 @@ h2. General
    | *⌘KB* | toggle side bar |
    | *⌘⇧P* | command prompt |
    | *⌃ `* | python console |
    | *⌘⇧N* | new window (useful for new project) |

    h2. Editing

  15. @lucasfais lucasfais revised this gist Sep 19, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@ h2. General
    | *⌘⌃P* | go to project |
    | *⌘R* | go to methods |
    | *⌃G* | go to line |
    | *⌘K-B* | toggle side bar |
    | *⌘KB* | toggle side bar |
    | *⌘⇧P* | command prompt |
    | *⌃ `* | python console |

  16. @lucasfais lucasfais revised this gist Sep 19, 2011. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,13 @@
    h1. Sublime Text 2 - Useful Shortcuts (Mac OS X)

    h2. Open/Goto
    h2. General

    | *⌘T* | go to file |
    | *⌘⌃P* | go to project |
    | *⌘R* | go to methods |
    | *⌘⇧P* | command prompt |
    | *⌃G* | go to line |
    | *⌘K-B* | toggle side bar |
    | *⌘⇧P* | command prompt |
    | *⌃ `* | python console |

    h2. Editing
  17. @lucasfais lucasfais revised this gist Sep 11, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -26,7 +26,7 @@ h2. Editing
    | *⌘ /* | comment |
    | *⌘⌥ /* | block comment |
    | *⌘Y* | redo or repeat |
    | *⌘⇧Z* | past and ident |
    | *⌘⇧V* | past and ident |
    | *⌃ space* | autocomplete (repeat to select next suggestion) |
    | *⌃M* | jump to matching brackets |

  18. @lucasfais lucasfais revised this gist Sep 10, 2011. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -23,8 +23,8 @@ h2. Editing
    | *⌘J* | join lines |
    | *⌘KU* | upper case |
    | *⌘KL* | lower case |
    | *⌘/* | comment |
    | *⌘⌥/* | block comment |
    | *⌘ /* | comment |
    | *⌘⌥ /* | block comment |
    | *⌘Y* | redo or repeat |
    | *⌘⇧Z* | past and ident |
    | *⌃ space* | autocomplete (repeat to select next suggestion) |
  19. @lucasfais lucasfais revised this gist Sep 10, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ h2. Open/Goto
    | *⌘R* | go to methods |
    | *⌘⇧P* | command prompt |
    | *⌃G* | go to line |
    | *⌃ `* | Python console |
    | *⌃ `* | python console |

    h2. Editing

  20. @lucasfais lucasfais revised this gist Sep 10, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ h2. Open/Goto
    | *⌘R* | go to methods |
    | *⌘⇧P* | command prompt |
    | *⌃G* | go to line |
    | *⌃`* | Python console |
    | *⌃ `* | Python console |

    h2. Editing

  21. @lucasfais lucasfais revised this gist Sep 10, 2011. 2 changed files with 67 additions and 62 deletions.
    67 changes: 67 additions & 0 deletions gistfile1.textile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,67 @@
    h1. Sublime Text 2 - Useful Shortcuts (Mac OS X)

    h2. Open/Goto

    | *⌘T* | go to file |
    | *⌘⌃P* | go to project |
    | *⌘R* | go to methods |
    | *⌘⇧P* | command prompt |
    | *⌃G* | go to line |
    | *⌃`* | Python console |

    h2. Editing

    | *⌘L* | select line (repeat select next lines) |
    | *⌘D* | select word (repeat select others occurrences in context for multiple editing) |
    | *⌃⇧M* | select content into brackets |
    | *⌘⇧↩* | insert line before |
    | *⌘↩* | inter line after |
    | *⌃⇧K* | delete line |
    | *⌘KK* | delete from cursor to end of line |
    | *⌘K⌫* | delete from cursor to start of line |
    | *⌘⇧D* | duplicate line(s) |
    | *⌘J* | join lines |
    | *⌘KU* | upper case |
    | *⌘KL* | lower case |
    | *⌘/* | comment |
    | *⌘⌥/* | block comment |
    | *⌘Y* | redo or repeat |
    | *⌘⇧Z* | past and ident |
    | *⌃ space* | autocomplete (repeat to select next suggestion) |
    | *⌃M* | jump to matching brackets |

    h2. XML/HTML

    | *⌘⇧A* | select content into tag |
    | *⌘⌥ .* | close tag |

    h2. Find/Replace

    | *⌘F* | find |
    | *⌘⌥F* | replace |
    | *⌘⌥G* | find next occurrence of current word |
    | *⌘⌃G* | select all occurrences of current word for multiple editing |
    | *⌘⇧F* | find in files |

    h2. Splits/Tabs

    | *⌘⌥1* | single column |
    | *⌘⌥2* | two columns |
    | *⌘⌥5* | grid (4 groups) |
    | *⌃[1,2,3,4]* | focus group |
    | *⌃⇧[1,2,3,4]* | move file to group |
    | *⌘[1,2,3...]* | select tab |

    h2. Bookmarks

    | *⌘F2* | toggle bookmark |
    | *F2* | next bookmark |
    | *⇧F2* | previous bookmark |
    | *⌘⇧F2* | clear bookmarks |

    h2. Marks

    | *⌘K space* | set mark // ⌘K; for me |
    | *⌘KW* | delete from cursor to mark |
    | *⌘KA* | select from cursor to mark |
    | *⌘KG* | clear mark |
    62 changes: 0 additions & 62 deletions sublime_text_2_useful_shortcuts.md
    Original file line number Diff line number Diff line change
    @@ -1,62 +0,0 @@
    # Sublime Text 2 - Useful Shortcuts #

    *Tested in Mac OS X: super == command*

    ## Open/Goto ##
    - super+t: go to file
    - super+ctrl+p: go to project
    - super+r: go to methods
    - super+shift+p: command prompt
    - ctrl+g: go to line
    - ctrl+`: Python console

    ## Editing ##
    - super+l: select line (repeat select next lines)
    - super+d: select word (repeat select others occurrences in context for multiple editing)
    - ctrl+shift+m: select content into brackets
    - super+shift+enter: insert line before
    - super+enter: inter line after
    - ctrl+shift+k: delete line
    - super+k-k: delete from cursor to end of line
    - super+k-backspace: delete from cursor to start of line
    - super+shift+d: duplicate line(s)
    - super+j: join lines
    - super+k-u: upper case
    - super+k-l: lower case
    - super+/: comment
    - super+alt+/: block comment
    - super+y: redo or repeat
    - super+shift+z: past and ident
    - ctrl+space: autocomplete (repeat to select next suggestion)
    - ctrl+m: jump to matching brackets

    ## XML/HTML ##
    - super+shift+a: select content into tag
    - super+alt+.: close tag

    ## Find/Replace ##
    - super+f: find
    - super+alt+f: replace
    - super+alt+g: find next occurrence of current word
    - super+ctrl+g: select all occurrences of current word for multiple editing
    - super+shift+f: find in files

    ## Splits/Tabs ##
    - super+alt+1: Single column
    - super+alt+2: Two columns
    - super+alt+5: Grid (4 groups)
    - ctrl+[1,2,3,4]: Focus group
    - ctrl+shift[1,2,3,4]: Move file to group
    - super+[1,2,3...] Select tab

    ## Bookmarks ##
    - super+f2: Toggle bookmark
    - f2: next bookmark
    - shift+f2: previous bookmark
    - super+shift+f2: clear bookmarks

    ## Marks ##
    - super+k-space: set mark // super+k-; for me
    - super+k-w: delete from cursor to mark
    - super+k-a: select from cursor to mark
    - super+k-g: clear mark
  22. @lucasfais lucasfais revised this gist Sep 9, 2011. 1 changed file with 9 additions and 17 deletions.
    26 changes: 9 additions & 17 deletions sublime_text_2_useful_shortcuts.md
    Original file line number Diff line number Diff line change
    @@ -1,19 +1,16 @@
    Sublime Text 2 - Useful Shortcuts
    =================================
    # Sublime Text 2 - Useful Shortcuts #

    *Tested in Mac OS X: super == command*

    Open/Goto
    _________
    ## Open/Goto ##
    - super+t: go to file
    - super+ctrl+p: go to project
    - super+r: go to methods
    - super+shift+p: command prompt
    - ctrl+g: go to line
    - ctrl+`: Python console

    Editing
    _______
    ## Editing ##
    - super+l: select line (repeat select next lines)
    - super+d: select word (repeat select others occurrences in context for multiple editing)
    - ctrl+shift+m: select content into brackets
    @@ -33,38 +30,33 @@ _______
    - ctrl+space: autocomplete (repeat to select next suggestion)
    - ctrl+m: jump to matching brackets

    XML/HTML
    ________
    ## XML/HTML ##
    - super+shift+a: select content into tag
    - super+alt+.: close tag

    Find/Replace
    ____________
    ## Find/Replace ##
    - super+f: find
    - super+alt+f: replace
    - super+alt+g: find next occurrence of current word
    - super+ctrl+g: select all occurrences of current word for multiple editing
    - super+shift+f: find in files

    Splits/Tabs
    ___________
    ## Splits/Tabs ##
    - super+alt+1: Single column
    - super+alt+2: Two columns
    - super+alt+5: Grid (4 groups)
    - ctrl+[1,2,3,4]: Focus group
    - ctrl+shift[1,2,3,4]: Move file to group
    - super+[1,2,3...] Select tab

    Bookmarks
    _________
    ## Bookmarks ##
    - super+f2: Toggle bookmark
    - f2: next bookmark
    - shift+f2: previous bookmark
    - super+shift+f2: clear bookmarks

    Marks
    _____
    ## Marks ##
    - super+k-space: set mark // super+k-; for me
    - super+k-w: delete from cursor to mark
    - super+k-a: select from cursor to mark
    - super+k-g: clear mark
    - super+k-g: clear mark
  23. @lucasfais lucasfais renamed this gist Sep 9, 2011. 1 changed file with 0 additions and 0 deletions.
  24. @lucasfais lucasfais revised this gist Sep 9, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion sublime_text_2_useful_shortcuts
    Original file line number Diff line number Diff line change
    @@ -67,4 +67,4 @@ _____
    - super+k-space: set mark // super+k-; for me
    - super+k-w: delete from cursor to mark
    - super+k-a: select from cursor to mark
    - super+k-g: clear mark
    - super+k-g: clear mark
  25. @invalid-email-address Anonymous created this gist Sep 9, 2011.
    70 changes: 70 additions & 0 deletions sublime_text_2_useful_shortcuts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,70 @@
    Sublime Text 2 - Useful Shortcuts
    =================================

    *Tested in Mac OS X: super == command*

    Open/Goto
    _________
    - super+t: go to file
    - super+ctrl+p: go to project
    - super+r: go to methods
    - super+shift+p: command prompt
    - ctrl+g: go to line
    - ctrl+`: Python console

    Editing
    _______
    - super+l: select line (repeat select next lines)
    - super+d: select word (repeat select others occurrences in context for multiple editing)
    - ctrl+shift+m: select content into brackets
    - super+shift+enter: insert line before
    - super+enter: inter line after
    - ctrl+shift+k: delete line
    - super+k-k: delete from cursor to end of line
    - super+k-backspace: delete from cursor to start of line
    - super+shift+d: duplicate line(s)
    - super+j: join lines
    - super+k-u: upper case
    - super+k-l: lower case
    - super+/: comment
    - super+alt+/: block comment
    - super+y: redo or repeat
    - super+shift+z: past and ident
    - ctrl+space: autocomplete (repeat to select next suggestion)
    - ctrl+m: jump to matching brackets

    XML/HTML
    ________
    - super+shift+a: select content into tag
    - super+alt+.: close tag

    Find/Replace
    ____________
    - super+f: find
    - super+alt+f: replace
    - super+alt+g: find next occurrence of current word
    - super+ctrl+g: select all occurrences of current word for multiple editing
    - super+shift+f: find in files

    Splits/Tabs
    ___________
    - super+alt+1: Single column
    - super+alt+2: Two columns
    - super+alt+5: Grid (4 groups)
    - ctrl+[1,2,3,4]: Focus group
    - ctrl+shift[1,2,3,4]: Move file to group
    - super+[1,2,3...] Select tab

    Bookmarks
    _________
    - super+f2: Toggle bookmark
    - f2: next bookmark
    - shift+f2: previous bookmark
    - super+shift+f2: clear bookmarks

    Marks
    _____
    - super+k-space: set mark // super+k-; for me
    - super+k-w: delete from cursor to mark
    - super+k-a: select from cursor to mark
    - super+k-g: clear mark