在 gvim 中显示空白字符 [英] Show whitespace characters in gvim

查看:114
本文介绍了在 gvim 中显示空白字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种简单的方法可以在 gvim 中显示空格和制表符等空白字符?类似于 Gedit、Geany、Komodo 和其他 GUI 编辑器中实现的内容,其中(当该选项打开时)空格显示为静音或灰显的.".和制表符为-->".

Is there an easy way to display whitespace characters such as space and tab in gvim? Something like what is implemented in Gedit, Geany, Komodo, and other GUI editors where (when the option is turned on) spaces show as a muted or greyed-out '.' and tabs as '-->'.

推荐答案

查看 Vim 中的 listcharslist 选项.此功能的使用示例:

Check out listchars and list options in Vim. An example use of this feature:

" part of ~/.vimrc
" highlight tabs and trailing spaces
set listchars=tab:>-,trail:-
set list

这篇关于在 gvim 中显示空白字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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