Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I temporarily disable the auto-alignment, in Insert mode? #267

Open
capn-freako opened this issue Aug 7, 2017 · 2 comments
Open

Comments

@capn-freako
Copy link

I'm continually fighting with the auto-aligner, and would like to temporarily disable it. Can I do that?

@begriffs
Copy link
Owner

begriffs commented Sep 1, 2017

I know what you mean, sometimes the indenter gets hyperactive.

Internally the config uses neovimhaskell/haskell-vim for indentation.

To turn it off, see https://github.com/neovimhaskell/haskell-vim#indentation

It would be cool to bind that to a key command. I'd take a pull request for that if you're feeling ambitious.

@capn-freako
Copy link
Author

I've found that putting this in my vimrc.local works:

nnoremap <silent> <F9> :setl noai nocin nosi inde=<CR>

Although, it's a "one shot" technique, whereas I'd prefer a toggle.

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

No branches or pull requests

2 participants