haskell-vim-now icon indicating copy to clipboard operation
haskell-vim-now copied to clipboard

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

Open capn-freako opened this issue 8 years ago • 2 comments

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

capn-freako avatar Aug 07 '17 16:08 capn-freako

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.

begriffs avatar Sep 01 '17 20:09 begriffs

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.

capn-freako avatar Dec 18 '17 22:12 capn-freako