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 laststatus=2
|
||||||
|
set encoding=utf-8
|
||||||
|
set autoindent
|
||||||
|
|
||||||
filetype indent plugin on
|
filetype indent plugin on
|
||||||
" show existing tab with 4 spaces width
|
|
||||||
|
" Global tab settings
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
" when indenting with '>', use 4 spaces width
|
|
||||||
set shiftwidth=4
|
set shiftwidth=4
|
||||||
" On pressing tab, insert 4 spaces
|
set softtabstop=4
|
||||||
set expandtab
|
set expandtab
|
||||||
" hilight tab
|
|
||||||
highlight SpecialKey ctermfg=1
|
" Set to show invisibles (tabs & trailing spaces) & their highlight color
|
||||||
set list
|
set list listchars=tab:»\ ,trail:·
|
||||||
set listchars=tab:T>
|
|
||||||
|
|
||||||
set number
|
set number
|
||||||
|
|
||||||
@ -47,5 +49,7 @@ function SetGPGOptions()
|
|||||||
set foldopen=insert
|
set foldopen=insert
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Set to show invisibles (tabs & trailing spaces) & their highlight color
|
if has("autocmd")
|
||||||
set list listchars=tab:»\ ,trail:·
|
" 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