English 中文(简体)
缩略语
原标题:Vim visual selection delete/insert in Emacs
  • 时间:2011-10-02 10:25:06
  •  标签:
  • emacs

我愿删除以下两条线上的头两个特征:

11 line1
22 line2

我以正文进入视觉模式,选择我想要删除和删除的区域。 而且 我还可在后面加一栏。

11
22

like

11 added line1
22 added line2

wiht Shift+I after selecting the column in visual mode. Is there a way to do the same in emacs?

最佳回答

cua-mode provides exactly this sort of feature. You can turn it on with the following in your .emacs:

(setq cua-enable-cua-keys nil)
(cua-mode)

第1行是必要的,以防止<代码>cua-mode取代标准键盘顶板短cut,代之以视像(复制件C-c、切割C-x等)。

您在cua-mode上读,C-enter后,将视障转,然后随行钥匙(箭,C-n,C-f等)加以扩展,以涵盖你想要操纵的文本。 虽然这在进行,但<代码><>enter>> /code> 却把 cur子放在 rec子的边缘,你的任何类型都插入了与 cur相同的左边。 插入的幅度与试金星的大小相匹配,因此,如果你想在一线(或中层或终端)的开始点添加相同的案文,这是这样做的最快方式。

如果你使黄瓜的关键约束力失效,那么C-w就将杀死 rec物的内容。

很不幸的是, cu-mode的直径是自食其力的,因为许多不想要加固的黄玉米的人并没有认识到,这种模式也具有这种冷却的特点!

问题回答

象Emacs这样的音响亮点。 你们必须直观你的头部,从点到标识。

C-x r k to kill rectangle C-x r t to fill rectangle with text. You want a rectangle zero column wide to do your second request.





相关问题
suppress additional braces in emacs electric mode

I started using ruby-electric-mode. I like it except that I am used to closing open brackets myself (the other pairing are still useful to me). How can I make emacs suppress additional brackets when ...

Setting up an emacs environment in windows?

I am currently constrained to a windows dev box and I want to migrate my projects from eclipse to emacs. What are some good references on setting up an emacs dev environment for windows? Anything ...

Emacs Setting which-function-mode

I would like to have which-function-mode on by default when I open up Emacs. I ve added the following lines to my .emacs file. (setq which-func-mode t) (setq which-function-mode t) When I open ...

Enabling go mode for emacs

I don t seem to be able to enable a go mode for emacs. C mode doesn t work without semicolons. The best I have found is the JavaScript mode by Karl Landstrom, since JavaScript also doesn t require ...

Custom Emacs key bindings are not working

The key bindings I ve defined in my .emacs file aren t working. Here s the file: ;init modes (menu-bar-mode 0) (tool-bar-mode 0) (cua-mode) (column-number-mode) (fset perl-mode cperl-mode) (cperl-...

eval during emacs lisp macro expansion

How can I fix the simple macro foo in (elisp)Eval During Expansion? None of the followings work: (defmacro foo1 (a) `(setq (eval ,a) t)) (defmacro foo2 (a) `(setq ,(eval a) t)) (defmacro foo3 (...

Get local cvs comment history when committing file/s in emacs

I often commit files with similar cvs comment but not in a single operation. I would like to able to bring up previous comments I ve used in a previous commit when I am in the process of writing a ...

热门标签