Closed dminca closed 6 years ago
This is by design*. You should be able to overwrite this behavior with an autocommand as mentioned on the README.
indent/ansible.vim:L6
turns off smartindentActually I'm not even able to reproduce this behavior when template:
is blank.
This seems to be something inside your config function GetAnsibleIndent(lnum)
is responsible for setting indent, and is working properly.
Let me know if you're able to provide a reproduction, I can't reproduce this against master
or v2
using this vimrc. Tested against both latest Vim and Neovim.
set nocp
call plug#begin('~/.vim/plugged')
Plug 'pearofducks/ansible-vim'
call plug#end()
filetype plugin indent on
syntax on
set ai
set si
Having the following configs in
~/.vimrc
Testing inside ansible task:
after hitting ENTER after
template:
it's not auto-indentingsrc:
(and whatever comes next) with 2 spaces.Compare this behavior between
:set filetype=yaml
and:set filetype=ansible