Re: Fedora 32 strange vim behavior?

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

 



Sat, 13 Jun 2020 08:14:59 -0500
Richard Shaw <hobbes1069@xxxxxxxxx>:

> On Sat, Jun 13, 2020 at 8:06 AM Łukasz Posadowski
> <mail@xxxxxxxxxxxxxxxxxxx> wrote:
> 
> > Sat, 13 Jun 2020 07:21:54 -0500
> > Richard Shaw <hobbes1069@xxxxxxxxx>:
> >
> > > 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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux