前段时间,我开始接触用Vim
来写一些Ansible
的playbook
。而后一直遇到了缩进问题。以下:bash
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
就能够解决问题了。app