Skip to content
This repository has been archived by the owner on May 25, 2019. It is now read-only.

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

Open
Napkin opened this issue Feb 26, 2015 · 1 comment
Open

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

Napkin opened this issue Feb 26, 2015 · 1 comment

Comments

@Napkin
Copy link

Napkin commented Feb 26, 2015

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).
@coryfklein
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants