vim编辑器中 inconsitent use of tabs and spaces
作者:互联网
在服务器上使用Linux的vim编辑器一直给我一个很大的困扰
那就是 每次遇到自己需要修改的地方 总会报错
inconsitent use of tabs and spaces
然后只能再download到本地的IDE中调整,再upload,很费时间
也有想过一劳永逸的方法,参考了网上几篇修改vimrc文件的博客都不奏效,类似下面这种
终于找到一种work的方法,记录下来
#1.将所有tab替换为了spaces
expand -t 4 filename > newfile
#2.将所有space替换为了tabs
unexpand -t 4 filename > newfile
标签:use,tabs,vim,spaces,inconsitent,newfile 来源: https://blog.csdn.net/zhiman_zhong/article/details/97392144