2013-04-10 35 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 
選擇所需的矩形
相關問題