How to select or highlight a block in Emacs?

后端 未结 9 810
一向
一向 2020-12-22 20:37

I want to select or highlight a block in emacs without using mouse but doing it from the keyboard like vim\'s visual mode. What is the easiest way to do this from a keyboard

9条回答
  •  伪装坚强ぢ
    2020-12-22 21:04

    Take a look at region-rectangle in emacs.

    In short, you start selection like usual with Control-Space, then kill region with Control-x r k and paste (or yank) killed block with Control-x r y.

提交回复
热议问题