make use of tab (unless python or doctest)
This commit is contained in:
parent
e1f6a843b4
commit
5b6acb00ee
22
.vimrc
22
.vimrc
@ -1,15 +1,17 @@
|
||||
set laststatus=2
|
||||
set encoding=utf-8
|
||||
set autoindent
|
||||
|
||||
filetype indent plugin on
|
||||
" show existing tab with 4 spaces width
|
||||
|
||||
" Global tab settings
|
||||
set tabstop=4
|
||||
" when indenting with '>', use 4 spaces width
|
||||
set shiftwidth=4
|
||||
" On pressing tab, insert 4 spaces
|
||||
set softtabstop=4
|
||||
set expandtab
|
||||
" hilight tab
|
||||
highlight SpecialKey ctermfg=1
|
||||
set list
|
||||
set listchars=tab:T>
|
||||
|
||||
" Set to show invisibles (tabs & trailing spaces) & their highlight color
|
||||
set list listchars=tab:»\ ,trail:·
|
||||
|
||||
set number
|
||||
|
||||
@ -47,5 +49,7 @@ function SetGPGOptions()
|
||||
set foldopen=insert
|
||||
endfunction
|
||||
|
||||
" Set to show invisibles (tabs & trailing spaces) & their highlight color
|
||||
set list listchars=tab:»\ ,trail:·
|
||||
if has("autocmd")
|
||||
" Set filetype tab settings
|
||||
autocmd FileType python,doctest set ai ts=4 sw=4 sts=4 et
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user