haskell-vim-now
haskell-vim-now copied to clipboard
How do I temporarily disable the auto-alignment, in Insert mode?
I'm continually fighting with the auto-aligner, and would like to temporarily disable it. Can I do that?
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.
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.