Sat, 13 Jun 2020 08:14:59 -0500
Richard Shaw <hobbes1069(a)gmail.com>:
On Sat, Jun 13, 2020 at 8:06 AM Łukasz Posadowski
<mail(a)lukaszposadowski.pl> wrote:
> Sat, 13 Jun 2020 07:21:54 -0500
> Richard Shaw <hobbes1069(a)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