These are probably my most used shortcuts:
Textmate
ctrl+shift+> = open and close erb tags <% = %>
alt+command+] = auto indent highlighted code
ctrl+shift+w = auto put html tags around highlighted code
alt+command+> = auto close tag
ctrl+command+w = close all open tabs
alt+command+a = type on the end of multiple lines of highlighted code
VIM
o - is new line
d, shift g - clears the file (d is delete and capital g is bottom of the file)
:set number - turn on line numbers
18, shift g - goes to line 18
dd - deletes a line
Command line
ctrl+r - searches through recent commands (repeat to keep searching)
ctrl+a - beginning of the line
ctrl+e - end of line
Comments left...
More command Line tips:
ctrl+w – deletes back to the previous space
esc+backspace – deletes back to the nearest punctuation (e.g., . , / -)
esc+b and esc+f – jumps the cursor back or forward on the line to the nearest punctuation
Phil Balchin at 28 Jul 08 at 04:30
Articles Archive →
Got something to say?