Vim yml缩进问题
文章目录
前段时间,我开始接触用Vim来写一些Ansible的playbook。然后一直遇到了缩进问题。如下:
The error appears to be in '/home/zhang/Ansible/test.yml': line 2, column 16, but maybe elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- hosts: nj
remote_user: root
^ here
现在问题解决了,其实仅要把默认的缩进是8改成4就可以了。在Vim里面set tabstop=4就可以解决问题了。
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论