vim-ansible-yaml icon indicating copy to clipboard operation
vim-ansible-yaml copied to clipboard

Indenting line when typing a dash in the middle of that line

Open Napkin opened this issue 10 years ago • 1 comments
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!

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/8961819-indenting-line-when-typing-a-dash-in-the-middle-of-that-line?utm_campaign=plugin&utm_content=tracker%2F509109&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F509109&utm_medium=issues&utm_source=github).

Napkin avatar Feb 26 '15 11:02 Napkin

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.

coryfklein avatar Jun 21 '16 15:06 coryfklein