Re: [PATCH] contrib/vimrc: detect more C-like files

2020-07-23 Thread Patrick Palka via Gcc-patches
On Thu, 23 Jul 2020, Martin Liška wrote: > On 7/23/20 4:44 PM, Patrick Palka via Gcc-patches wrote: > > Here's a rebased patch. Can another Vim user verify that this does the > > right thing? > > Yes, it works correctly for me! I tested that before and after your change > for ./libstdc++-v3/incl

Re: [PATCH] contrib/vimrc: detect more C-like files

2020-07-23 Thread Martin Liška
On 7/23/20 4:44 PM, Patrick Palka via Gcc-patches wrote: Here's a rebased patch. Can another Vim user verify that this does the right thing? Yes, it works correctly for me! I tested that before and after your change for ./libstdc++-v3/include/std/iomanip. Please install the patch. Martin

Re: [PATCH] contrib/vimrc: detect more C-like files

2020-07-23 Thread Patrick Palka via Gcc-patches
t;cpp" || &filetype == "c" > setlocal cindent > setlocal cinoptions=>4,n-2,{2,^-2,:2,=2,g0,f0,h2,p4,t0,+2,(0,u0,w1,m0 >endif > -- > 2.25.0.114.g5b0ca878e0 Here's a rebased patch. Can another Vim user verify that this does the right thing?

[PATCH] contrib/vimrc: detect more C-like files

2020-02-03 Thread Patrick Palka
Currently this script doesn't set the indentation style for the standard library headers under libstdc++/ because they lack a file extension. But they do have a modeline, so the file type is still set appropriately by Vim. So by inspecting &filetype, we can also detect these standard library head