前段時間,我開始接觸用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