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

相關文章
相關標籤/搜索