mirror of
https://github.com/DictXiong/dotfiles.git
synced 2024-11-24 10:57:02 +08:00
feat(vimrc): tab=2 for c,cpp,nix,yaml
This commit is contained in:
parent
cbc09bc73b
commit
7b3a596232
1
.vimrc2
1
.vimrc2
|
@ -16,6 +16,7 @@ set autoindent
|
||||||
set smartindent
|
set smartindent
|
||||||
set expandtab "spaces instead of tabs
|
set expandtab "spaces instead of tabs
|
||||||
set tabstop=4 softtabstop=4 shiftwidth=4
|
set tabstop=4 softtabstop=4 shiftwidth=4
|
||||||
|
autocmd FileType c,cpp,nix,yaml setlocal tabstop=2 softtabstop=2 shiftwidth=2
|
||||||
set backspace=indent,eol,start
|
set backspace=indent,eol,start
|
||||||
set number "line numbers
|
set number "line numbers
|
||||||
set history=1000
|
set history=1000
|
||||||
|
|
Loading…
Reference in New Issue
Block a user