Sat, 13 Jun 2020 08:14:59 -0500
Richard Shaw <hobbes1...@gmail.com>:

> On Sat, Jun 13, 2020 at 8:06 AM Łukasz Posadowski
> <m...@lukaszposadowski.pl> wrote:
> 
> > Sat, 13 Jun 2020 07:21:54 -0500
> > Richard Shaw <hobbes1...@gmail.com>:
> >
> > > Also, it tries to indent for me in some code type files but it's
> > > using tabs instead of spaces and 8 spaces instead of 4. One would
> > > think in 2020 that software could "intuit" what the prevailing
> > > style is.
> >
> > Are those yaml files, by some accident?
> >
> 
> Mostly C/C++ and CMake files. I *THINK* I got it fixed by creating a
> ~/.vimrc file :
> 
> $ cat ~/.vimrc
> :set tabstop=4
> :set expandtab
> :set shiftwidth=4
> :set autoindent
> :set smartindent
> :set cindent

I work with those lines:
set expandtab
set tabstop=2
set shiftwidth=2
set softtabstop=2
set autoindent
set tabstop=8
set shiftwidth=2
set softtabstop=2
but sometimes it still defaults to a config
from /usr/share/vim[version]/indent, depends of file type.

-- 
Łukasz Posadowski
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to