VIM 高亮当前行 [英] VIM Highlight the whole current line

查看:26
本文介绍了VIM 高亮当前行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 VIM 中突出显示整个当前行的最佳方式是什么?在某些 IDE 中,我可以将我正在编辑的行设置为某种 20% 的不透明度,这非常适合快速找到我所在的位置.

What is the best way to highlight the whole current line in VIM? In some IDEs I am able to set some sort of 20% opacity of the line I am editing, this is great to find where I am rather quickly.

推荐答案

要高亮当前行使用

:set cursorline

要突出显示当前列,请使用

To highlight the current column use

:set cursorcolumn

可以修改它的视觉外观.看看 :help hl-CursorLinehl-CursorColumn.

The visual appearance of this can be modified. Have a look around :help hl-CursorLine or hl-CursorColumn.

这篇关于VIM 高亮当前行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆