" Apparence / interface set ruler set laststatus=2 set statusline=%<%f%h%m%r%=%l,%c\ %P set scrolloff=1 set showcmd set showmatch set hlsearch set incsearch set wildmode=list:longest set history=50 " Édition (options de base) set nocompatible syntax on set backspace=2 set whichwrap=<,>,[,] set nostartofline set cinoptions=(0 set ignorecase set autoindent set textwidth=0 set shiftwidth=2 set tabstop=2 set foldmethod=indent set foldlevel=12 set smartcase set autowrite set spelllang=fr " Mapping pour sauvegarder nmap :w imap :w " Options relatives au type de fichier (indentation, etc.) autocmd BufNewfile,BufRead *.{c,cpp,h} set expandtab " On veut charger le ftplugin et l'indentation par défaut filetype plugin indent on """""""""""""""""" " module latex " """""""""""""""""" " REQUIRED. This makes vim invoke latex-suite when you open a tex file. filetype plugin on " IMPORTANT: win32 users will need to have 'shellslash' set so that latex " can be called correctly. set shellslash " IMPORTANT: grep will sometimes skip displaying the file name if you " search in a singe file. This will confuse latex-suite. Set your grep " program to alway generate a file-name. set grepprg=grep\ -nH\ $* " OPTIONAL: This enables automatic indentation as you type. filetype indent on " Pour la coloration syntaxique de spip au BufNewFile,BufRead *.spip set ft=spip