php indentation fixed.

This commit is contained in:
ManjaroOne666 2017-09-20 11:19:29 +01:00
parent 7c9e8ae1f6
commit b01686ffa5
1 changed files with 13 additions and 8 deletions

21
vimrc
View File

@ -98,7 +98,7 @@ set hidden
set bg=dark set bg=dark
" set number " set number
set nonumber set nonumber
set autoindent set hlsearch " highlight searches
" set width of the fold column to create a margin " set width of the fold column to create a margin
set foldcolumn=2 set foldcolumn=2
@ -187,18 +187,23 @@ set colorcolumn=100
set foldmethod=manual set foldmethod=manual
" indents and margins
set autoindent
filetype plugin indent on " file type based indentation
syntax on syntax on
" tabs
"set tabstop=2 " leave at default "set tabstop=2 " leave at default
set expandtab " tab inserts 'softtabstop' number of spaces set expandtab " tab inserts 'softtabstop' number of spaces
" set following with autocommands to override filetype plugin indent " set following with autocommands to override filetype plugin indent
au Filetype * let &l:softtabstop=2 " au Filetype * set softtabstop=2 "
au Filetype * let &l:shiftwidth=2 " affects what happens with >>,<<,== and automatic indentation 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 shiftround " round indent to multiples of shiftwidth
set autoindent " copy indent from current line over to new line set autoindent " copy indent from current line over to new line
set mouse=a set mouse=a
filetype plugin indent on " file type based indentation set listchars=eol,tab:->,trail:~,extends:>,precedes:<,space
" rewrapping set to 80 " rewrapping set to 80
set tw=180 set tw=180
@ -207,9 +212,9 @@ set fo=cq
" disable wrapping based on terminal size " disable wrapping based on terminal size
set wm=0 set wm=0
set t_Co=8 set t_Co=255 " number of colours
set t_Sf=<Esc>[3%p1%dm set t_Sf=<Esc>[3%p1%dm " foreground colour
set t_Sb=<Esc>[4%p1%dm set t_Sb=<Esc>[4%p1%dm " background coloru
nnoremap <F2> :set invpaste paste?<CR> nnoremap <F2> :set invpaste paste?<CR>
set pastetoggle=<F2> set pastetoggle=<F2>