[vim] Do not expand tab unless it's python

This commit is contained in:
Mathieu Maret 2010-09-28 15:43:25 +02:00
parent a5ac67dc62
commit 81553978aa
2 changed files with 20 additions and 8 deletions

17
.vimrc
View File

@ -197,11 +197,11 @@ if has("autocmd")
autocmd BufRead,BufNewFile *.py syntax on
autocmd BufRead,BufNewFile *.py set ai
autocmd BufRead,BufNewFile *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
set tabstop=4
set expandtab
set shiftwidth=4
set softtabstop=4
set modeline
autocmd BufRead,BufNewFile *.py set tabstop=4
autocmd BufRead,BufNewFile *.py set expandtab
autocmd BufRead,BufNewFile *.py set shiftwidth=4
autocmd BufRead,BufNewFile *.py set softtabstop=4
autocmd BufRead,BufNewFile *.py set modeline
endif
" define whitespaces at end of line as bad whitespaces
@ -255,7 +255,7 @@ let Tlist_Display_Prototype = 0
let Tlist_Display_Tag_Scope = 0
let Tlist_Show_One_File = 1
let Tlist_Compact_Format = 1
let Tlist_Enable_Fold_Column = 1
let Tlist_Enable_Fold_Column = 0
"let Tlist_File_Fold_Auto_Close = 1
let Tlist_Inc_Winwidth = 0
"let Tlist_Use_Horiz_Window = 1
@ -479,7 +479,10 @@ endif
nmap <F10> zfa{<CR><CR>
" unfold or use End
nmap <S-F10> zo<CR><CR>
" Autosave folding
"au BufWinLeave * mkview
" Autoload folding
"au BufWinEnter * silent loadview
""""""""""""""""""""""""""""""""""""""""""""""""""
"Omni-completion par CTRL-X_CTRL-O

View File

@ -1,4 +1,13 @@
ctags -f ~/.vim/qt4tags -R /usr/include/qt4/
ou si on a pas de .ctags
ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++ -f gl /usr/include/GL/ # for OpenGL
ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++ -f sdl /usr/include/SDL/ # for SDL
ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++ -f qt4 /usr/include/qt4/ # for QT4
in .vimrc
set tags+=~/vim/st4tags
set tags+=~/vim/qt4tags
" configure tags - add additional tags here or comment out not-used ones
set tags+=~/.vim/tags/gl
set tags+=~/.vim/tags/sdl
set tags+=~/.vim/tags/qt4