Visual selection of Vim delete / insert in Emacs

I tried to find a replacement for the vim visual mode which is extremely useful, let's say I would like to remove the first two characters on the next two lines

11 line1
22 line2

in vim, I enter visual mode and select the area that I want to delete and delete it. Moreover, I can also add to the column after

11
22

as

11 added line1
22 added line2

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

+5
source share
4 answers

cua-mode provides just such a function. You can enable it using the following in .emacs:

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

, cua-mode Windows (C-c , C-x ..).

cua-mode, C-enter , (, C-n, C-f ..), , , , enter , , , , . , , ( ) , .

cua keybindings, C-w .

, cua-mode , , cua-mode, ,

+5

Emacs. .

C-x r k, C-x r t, . , , .

+7

, Vimpulse , :

http://www.emacswiki.org/emacs/vimpulse.el

Vimpulse emulates Vim's most popular features, such as visual mode and text objects. Vimpulse is a set of modifications for Viper, the standard library that emulates vi. Vimpulse is not a secondary mode; once it is loaded, Viper will start working in a more vim-like way.

+3
source

All Articles