如何在Emacs中选择或突出显示一个块? [英] How to select or highlight a block in Emacs?
本文介绍了如何在Emacs中选择或突出显示一个块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在emacs中选择或突出显示一个块而不使用鼠标,而是像vim的可视模式一样从键盘上进行选择.用键盘最简单的方法是什么?
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?
推荐答案
看看emacs中的region-rectangle.
Take a look at region-rectangle in emacs.
简而言之,您可以像往常一样使用 Control - Space 开始选择,然后使用 Control - x r k 并使用 Control - x 粘贴(或 yank )杀死的块 r y .
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.
这篇关于如何在Emacs中选择或突出显示一个块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文