Add config for vim

This commit is contained in:
Huy-Ngo 2020-07-15 09:10:39 +07:00
parent 58db5caddb
commit 5272184643
1 changed files with 13 additions and 0 deletions

13
vim/.vimrc Normal file
View File

@ -0,0 +1,13 @@
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
set autoindent
set smartindent
let &t_SI = "\<Esc>[6 q"
let &t_SR = "\<Esc>[4 q"
let &t_EI = "\<Esc>[2 q"
inoremap { {<CR>}<Esc>ko