I believe textmate has a mode where if you start typing, the same thing will be entered on all the lines you've selected. Is there something similar to this in emacs? I'm guessing there's a way rectangles can help me, but I'm not sure how...
Select the lines you want and then press: Windows: Shift + Alt + i. Mac: shift + option + i.
This is shift-select-mode , and it is enabled by default in Emacs 24+. On some (non-chiclet) keyboards, you should be able to hold down C-S- with a single pinky.
Move your cursor directly before the region you want to delete. Set a mark by pressing Ctrl-6 or Ctrl-^ . Move the cursor to the end of the region you want to delete and press Ctrl-k .
It's as simple as this: C-x r t
Some examples are here: http://ergoemacs.org/emacs/emacs_string-rectangle_ascii-art.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With