":set all&" doesn't reset indent amount for cindent. Steps to reproduce: $ vim -u NONE :set shiftwidth=2 :set all& :set shiftwidth? shiftwidth=8 :set cindent i{ This line should be indented with 8 spaces (tab character). }<Esc>
Result: { This line should be indented with 8 spaces (tab character). } Expected: { >-------This line should be indented with 8 spaces (tab character). } Cindent uses buffer local cache value. But ":set all&" doesn't reset it. diff -r babc6a1d4c27 src/option.c --- a/src/option.c Sat Aug 23 15:31:19 2014 +0200 +++ b/src/option.c Thu Aug 28 10:56:40 2014 +0900 @@ -3642,6 +3642,10 @@ #else win_comp_scroll(curwin); #endif + +#ifdef FEAT_CINDENT + parse_cino(curbuf); +#endif } /* -- Yukihiro Nakadaira - yukihiro.nakada...@gmail.com -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.