tabs->spaces
This commit is contained in:
parent
e4d53db488
commit
6e11fe0b7e
16
vim/generic
16
vim/generic
|
@ -37,9 +37,9 @@ set noswapfile
|
||||||
set title
|
set title
|
||||||
|
|
||||||
syn on se title
|
syn on se title
|
||||||
set ts=8
|
set ts=4
|
||||||
set softtabstop=8
|
set softtabstop=4
|
||||||
set shiftwidth=8
|
set shiftwidth=4
|
||||||
set expandtab
|
set expandtab
|
||||||
" Show tabs and trailing spaces
|
" Show tabs and trailing spaces
|
||||||
set list listchars=tab:»\ ,trail:·
|
set list listchars=tab:»\ ,trail:·
|
||||||
|
@ -78,7 +78,7 @@ if has("autocmd")
|
||||||
au BufNewFile,BufRead COMMIT_EDITMSG set spell nonumber nolist wrap linebreak
|
au BufNewFile,BufRead COMMIT_EDITMSG set spell nonumber nolist wrap linebreak
|
||||||
|
|
||||||
" Set filetype tab settings
|
" Set filetype tab settings
|
||||||
autocmd FileType python,doctest set ai ts=8 sw=8 sts=8 et
|
autocmd FileType python,doctest set ai ts=4 sw=4 sts=4 et
|
||||||
|
|
||||||
autocmd BufReadPost *
|
autocmd BufReadPost *
|
||||||
\ if line("'\"") > 1 && line("'\"") <= line("$") |
|
\ if line("'\"") > 1 && line("'\"") <= line("$") |
|
||||||
|
@ -86,9 +86,9 @@ if has("autocmd")
|
||||||
\ endif
|
\ endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" 80 characters line
|
" 100 characters line
|
||||||
set colorcolumn=81
|
set colorcolumn=101
|
||||||
"execute "set colorcolumn=" . join(range(81,335), ',')
|
"execute "set colorcolumn=" . join(range(101,335), ',')
|
||||||
highlight ColorColumn ctermbg=Black ctermfg=DarkRed
|
highlight ColorColumn ctermbg=Black ctermfg=DarkRed
|
||||||
|
|
||||||
" Highlight trailing spaces
|
" Highlight trailing spaces
|
||||||
|
@ -106,7 +106,7 @@ let g:tablabel =
|
||||||
\ "%N%{flagship#tabmodified()} %{flagship#tabcwds('shorten',',')}"
|
\ "%N%{flagship#tabmodified()} %{flagship#tabcwds('shorten',',')}"
|
||||||
|
|
||||||
" Python
|
" Python
|
||||||
au FileType python set ts=8 sts=4 et sw=4 smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
|
au FileType python set ts=4 sts=4 et sw=4 smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
|
||||||
|
|
||||||
source ${HOME}/.dotfiles/vim/abbreviations/personalAbbreviations.vim
|
source ${HOME}/.dotfiles/vim/abbreviations/personalAbbreviations.vim
|
||||||
source ${HOME}/.dotfiles/vim/abbreviations/codingAbbreviations.vim
|
source ${HOME}/.dotfiles/vim/abbreviations/codingAbbreviations.vim
|
||||||
|
|
14
vim/vimrc
14
vim/vimrc
|
@ -49,9 +49,9 @@ set noswapfile
|
||||||
set title
|
set title
|
||||||
|
|
||||||
syn on se title
|
syn on se title
|
||||||
set ts=8
|
set ts=4
|
||||||
set softtabstop=8
|
set softtabstop=4
|
||||||
set shiftwidth=8
|
set shiftwidth=4
|
||||||
set expandtab
|
set expandtab
|
||||||
" Show tabs and trailing spaces
|
" Show tabs and trailing spaces
|
||||||
set list listchars=tab:»\ ,trail:·
|
set list listchars=tab:»\ ,trail:·
|
||||||
|
@ -90,7 +90,7 @@ if has("autocmd")
|
||||||
au BufNewFile,BufRead COMMIT_EDITMSG set spell nonumber nolist wrap linebreak
|
au BufNewFile,BufRead COMMIT_EDITMSG set spell nonumber nolist wrap linebreak
|
||||||
|
|
||||||
" Set filetype tab settings
|
" Set filetype tab settings
|
||||||
autocmd FileType python,doctest set ai ts=8 sw=8 sts=8 et
|
autocmd FileType python,doctest set ai ts=4 sw=4 sts=4 et
|
||||||
|
|
||||||
autocmd BufReadPost *
|
autocmd BufReadPost *
|
||||||
\ if line("'\"") > 1 && line("'\"") <= line("$") |
|
\ if line("'\"") > 1 && line("'\"") <= line("$") |
|
||||||
|
@ -98,9 +98,9 @@ if has("autocmd")
|
||||||
\ endif
|
\ endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" 80 characters line
|
" 100 characters line
|
||||||
set colorcolumn=101
|
set colorcolumn=101
|
||||||
"execute "set colorcolumn=" . join(range(81,335), ',')
|
"execute "set colorcolumn=" . join(range(101,335), ',')
|
||||||
highlight ColorColumn ctermbg=Black ctermfg=DarkRed
|
highlight ColorColumn ctermbg=Black ctermfg=DarkRed
|
||||||
|
|
||||||
" Highlight trailing spaces
|
" Highlight trailing spaces
|
||||||
|
@ -118,7 +118,7 @@ let g:tablabel =
|
||||||
\ "%N%{flagship#tabmodified()} %{flagship#tabcwds('shorten',',')}"
|
\ "%N%{flagship#tabmodified()} %{flagship#tabcwds('shorten',',')}"
|
||||||
|
|
||||||
" Python
|
" Python
|
||||||
au FileType python set ts=8 sts=4 et sw=4 smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
|
au FileType python set ts=4 sts=4 et sw=4 smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
|
||||||
|
|
||||||
source ${HOME}/.dotfiles/vim/abbreviations/personalAbbreviations.vim
|
source ${HOME}/.dotfiles/vim/abbreviations/personalAbbreviations.vim
|
||||||
source ${HOME}/.dotfiles/vim/abbreviations/codingAbbreviations.vim
|
source ${HOME}/.dotfiles/vim/abbreviations/codingAbbreviations.vim
|
||||||
|
|
Loading…
Reference in New Issue