Re: [PATCH] Add project-wide .vimrc configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 8, 2020 at 7:32 PM Denton Liu <liu.denton@xxxxxxxxx> wrote:
> On Tue, Dec 08, 2020 at 06:26:19PM -0600, Felipe Contreras wrote:

> > diff --git a/.vimrc b/.vimrc
> > new file mode 100644
> > index 0000000000..d250ab26e0
> > --- /dev/null
> > +++ b/.vimrc
> > @@ -0,0 +1,9 @@
> > +augroup git
> > +  au!
> > +  au BufRead,BufNewFile */t/*.sh set ft=sharness.sh
> > +  au BufRead,BufNewFile */Documentation/*.txt set ft=asciidoc
> > +
> > +  au FileType c setl noet ts=8 sw=0 cino=(s,:0,l1,t0
> > +  au FileType sh setl noet ts=8 sw=0
> > +  au FileType asciidoc setl noet ts=8 sw=0 autoindent
> > +augroup END
>
> A couple of nits. We should tab-indent this file since the rest of the
> project uses tabs everywhere. Also, perhaps use the full name for the
> option names so that it's immediately obvious what each setting does?

All right, makes sense to me.

-- 
Felipe Contreras



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux