vim-ansible-yaml
vim-ansible-yaml copied to clipboard
Indenting line when typing a dash in the middle of that line
trafficstars
Hello, I ran into trouble a few times when indent was automatically increased for a line when I edited it and put a dash somewhere in the middle of the line.
I changed the line setlocal indentkeys=!^Fo,O,0#,<:>,- to setlocal indentkeys=!^Fo,O,0#,<:>,=- in indent/ansible.vim for now, but I don't know Vim enough to know whether this is a solution or disabled something else.
Wanted to let you know. Cheers!
Thanks! I was seeing the same thing and this fixed it for me in most cases. When I paste something that contains a dash I still get the bad indentation, but this is definitely an improvement.