diff --git a/.vimrc b/.vimrc index be59eff..61b5af9 100644 --- a/.vimrc +++ b/.vimrc @@ -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 zfa{ " unfold or use End nmap zo - +" Autosave folding +"au BufWinLeave * mkview +" Autoload folding +"au BufWinEnter * silent loadview """""""""""""""""""""""""""""""""""""""""""""""""" "Omni-completion par CTRL-X_CTRL-O diff --git a/HOSTO_CTAGS b/HOSTO_CTAGS index 97c8086..7ed661b 100644 --- a/HOSTO_CTAGS +++ b/HOSTO_CTAGS @@ -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