我如何找出为什么vim不断更改我的expandtab设置 [英] How can I find out why vim keeps changing my expandtab setting

查看:108
本文介绍了我如何找出为什么vim不断更改我的expandtab设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用vim.具体来说,我正在使用 Janus .我已经设置了expandtab.但是,在使用vim的过程中,由于某种原因,我的expandtab设置被设置为noexpandtab,并且我的文件开始获得硬标签.我已经尝试键入:verbose set expandtab?,但这并没有显示任何内容(特别是,它显示了设置了noexpandtab的内容,但没有显示负责设置该文件的文件).

I use vim. Specifically I am using Janus. I have expandtab set. However, during the course of using vim, for some reason, my expandtab setting gets set to noexpandtab, and my files start to gain hard tabs. I have tried typing :verbose set expandtab? but this does not show me anything (specifically, it shows me that noexpandtab is set, but it doesn't show a file that is responsible for setting it).

所以我想找出:

  • 为什么我的expandtab设置可能会更改
  • 我如何追查罪魁祸首并防止其发生

谢谢

推荐答案

尝试一下

:verb set expandtab?
:verb set et?
:verb set invexpandtab?

expandtab 实际上可以通过多种方式设置:/

expandtab can really be set in a number of ways :/

这篇关于我如何找出为什么vim不断更改我的expandtab设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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