- 论坛徽章:
- 0
|
有关 Emacs 使用技巧的内容请在这个帖子讨论。
原帖由 "wolfman.wu" 发表:
emacs 中如何进行列选择?
是否可以象 ultraedit 那样选择多列并且编辑东西?
可以参考emacs的info中rectangles这节
或到http://www.emacswiki.org搜索
`C-x r d'
Delete the text of the region-rectangle (`delete-rectangle').
`C-x r y'
Yank the last killed rectangle with its upper left corner at point
(`yank-rectangle').
`C-x r o'
Insert blank space to fill the space of the region-rectangle
(`open-rectangle'). This pushes the previous contents of the
region-rectangle rightward.
`M-x clear-rectangle'
Clear the region-rectangle by replacing its contents with spaces.
`M-x delete-whitespace-rectangle'
Delete whitespace in each of the lines on the specified rectangle,
starting from the left edge column of the rectangle.
`C-x r t STRING <RET>;'
Replace rectangle contents with STRING on each line.
(`string-rectangle').
`M-x string-insert-rectangle <RET>; STRING <RET>;'
Insert STRING on each line of the rectangle. |
|