Vim yml缩进问题

前段时间,我开始接触用Vim来写一些Ansibleplaybook。而后一直遇到了缩进问题。以下: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

相关文章
相关标签/搜索