2013-04-10 34 views

回答

16

要做到这一点,最好的办法是使用命令的“矩形”的家庭。例如,标记区域的开始。转到该区域的末尾,并将该点放在列X。使用C-x r k运行命令kill-rectangle

当然,这不限于在行首开始删除字符。

5

如果标记是在列0,把点上列x和使用kill-rectange

C-x r k runs the command kill-rectangle, which is an interactive 
autoloaded Lisp function in `rect.el'. 

It is bound to C-x r k. 

(kill-rectangle START END &optional FILL) 

Delete the region-rectangle and save it as the last killed one. 

When called from a program the rectangle's corners are START and END. 
You might prefer to use `delete-extract-rectangle' from a program. 
0

一个命令,我真的为这些类型的作业爱是多光标编辑线:

http://www.youtube.com/watch?v=jNa3axo40qM

这是矫枉过正相比kill-rectangle(原来的问题的最佳解决方案),但它是一个了不起的工具箱中的工具。绝对值得一看。

0

使用矩形命令

M-x rectangle-mark-mode 

然后使用命令

M-x kill-region 
选择所需的矩形
相关问题