Editor: Sublime
Packages
My preferences and used packages: https://github.com/hamxiaoz/my-scripts
vim ex mode: http://www.sublimetext.com/docs/2/vintage.html
git gutter: https://github.com/jisaacks/GitGutte
sidebarenhancement
The following looks good but not tested
Theme
Setup
How to have an "Open with sublime" icon in Finder toolbar?
Go to my repo open-folder-with-sublime and follow the instructions.
How to open current folder in command line?
do this [setup](Open current folder in command line, do this setup
then you can use like this:
subl .
Shortcuts/Tips
http://www.cheatography.com/ducondez/cheat-sheets/core-sublimetext/
Pane Management
ALT+CMD+num: open number of panesCTRL+num: switch to paneCTRL+SHIT+num: move tab to pane
Inside pane:
CMD+1/2/3: go to tab, most avtive to tabsSHIFT+CMD+[/]: go to next tab
Use Origami: super+k to start:
super+zto zoom,shift+super+zto resetuse arrow to switch to panes
press
shiftto carry file.press
altto clone file.
Selections / Multiple line editing
CMD+D
select the whole word even you're in the middle
hit multiple times will add up selections (multiple edit)
CMD+G: find next (cmd+D first), similar to it but it has visual
CTRL+CMD+G: select all current highlight
CMD+SHIFT+L: split lines in selection, then v to exit visual mode
SHIFT+CMD+SPACE: select parent scope, can I do it in vintage without telling the parent?
Search
symbol search in ST3
Editing Tips
How to remove the bullet points '1./2./3.' for multiple lines?
Old way in vim: line by line.
delete on 1st line then j0.
or q to record to 1 then 10@1
New way in vim/ST: multiple line editing:
select all lines
split lines selection:
SHIFT+CMD+Lv to exit v mode then 0dw
Example:
Last updated