moved indentation rules to ftplugin/ files

This commit is contained in:
ManjaroOne666 2017-09-21 13:54:09 +01:00
parent a56376cb5c
commit 13a323b19c
8 changed files with 42 additions and 8 deletions

6
vim/ftplugin/css.vim Normal file
View File

@ -0,0 +1,6 @@
set softtabstop=2
set tabstop=2
set shiftwidth=2
set expandtab
set shiftround
set autoindent

6
vim/ftplugin/html.vim Normal file
View File

@ -0,0 +1,6 @@
set softtabstop=2
set tabstop=2
set shiftwidth=2
set expandtab
set shiftround
set autoindent

View File

@ -0,0 +1,6 @@
set softtabstop=2
set tabstop=2
set shiftwidth=2
set expandtab
set shiftround
set autoindent

6
vim/ftplugin/php.vim Normal file
View File

@ -0,0 +1,6 @@
set softtabstop=2
set tabstop=2
set shiftwidth=2
set expandtab
set shiftround
set autoindent

6
vim/ftplugin/python.vim Normal file
View File

@ -0,0 +1,6 @@
set softtabstop=4
set tabstop=4
set shiftwidth=4
set expandtab
set shiftround
set autoindent

6
vim/ftplugin/scss.vim Normal file
View File

@ -0,0 +1,6 @@
set softtabstop=2
set tabstop=2
set shiftwidth=2
set expandtab
set shiftround
set autoindent

6
vim/ftplugin/vim.vim Normal file
View File

@ -0,0 +1,6 @@
set softtabstop=2
set tabstop=2
set shiftwidth=2
set expandtab
set shiftround
set autoindent

8
vimrc
View File

@ -198,14 +198,6 @@ set autoindent
filetype plugin indent on " file type based indentation
syntax on
"set tabstop=2 " leave at default
set expandtab " tab inserts 'softtabstop' number of spaces
" set following with autocommands to override filetype plugin indent
au Filetype * set softtabstop=2 "
au Filetype * set tabstop=2 "
au Filetype * set shiftwidth=2 " affects what happens with >>,<<,== and automatic indentation
set shiftround " round indent to multiples of shiftwidth
set autoindent " copy indent from current line over to new line
set mouse=a
set listchars=eol,tab:->,trail:~,extends:>,precedes:<,space