Added auto close brackets
This commit is contained in:
parent
1e94e7cde5
commit
6e411ae683
1 changed files with 11 additions and 0 deletions
|
@ -8,6 +8,9 @@ filetype indent on
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
set shiftwidth=0
|
set shiftwidth=0
|
||||||
set expandtab
|
set expandtab
|
||||||
|
set smarttab
|
||||||
|
set autoindent
|
||||||
|
set smartindent
|
||||||
set incsearch
|
set incsearch
|
||||||
set number
|
set number
|
||||||
set showmatch
|
set showmatch
|
||||||
|
@ -15,6 +18,14 @@ set title
|
||||||
set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx
|
set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx
|
||||||
syntax on
|
syntax on
|
||||||
|
|
||||||
|
" Automatically add closing parts
|
||||||
|
inoremap { {}<Left>
|
||||||
|
inoremap ( ()<Left>
|
||||||
|
inoremap [ []<Left>
|
||||||
|
inoremap < <><Left>
|
||||||
|
inoremap ' ''<Left>
|
||||||
|
inoremap " ""<Left>
|
||||||
|
|
||||||
" PLUGINS --------------------------------------------------------------- {{{
|
" PLUGINS --------------------------------------------------------------- {{{
|
||||||
|
|
||||||
call plug#begin('~/.vim/plugged')
|
call plug#begin('~/.vim/plugged')
|
||||||
|
|
Loading…
Reference in a new issue