" Configuration file for vim set runtimepath=~/.vim,/usr/share/vim/addons,/usr/share/vim/vimfiles,/usr/share/vim/vimcurrent,/usr/share/vim/vimfiles/after,/usr/share/vim/addons/after,~/.vim/after " Normally we use vim-extensions. If you want true vi-compatibility " remove change the following statements set nocompatible " Use Vim defaults instead of 100% vi compatibility set backspace=indent,eol,start " more powerful backspacing " Now we set some defaults for the editor " set autoindent " always set autoindenting on " set linebreak " Don't wrap words by default set textwidth=0 " Don't wrap lines by default set nobackup " Don't keep a backup file set viminfo='20,\"50 " read/write a .viminfo file, don't store more than " 50 lines of registers set history=20 " keep 20 lines of command line history set ruler " show the cursor position all the time set ai " 4 espaces pour une tabulation set softtabstop=4 set tabstop=4 " set shiftwidth=4 " 4 espace pour l'indentation set expandtab " ne jamais utiliser de tabulation set sm " correspondance entre les parentèses set cino= " style d'indentation par defaut " Suffixes that get lower priority when doing tab completion for filenames. " These are files we are not likely to want to edit or read. set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc " We know xterm-debian is a color terminal if &term =~ "xterm-debian" || &term =~ "xterm-xfree86" set t_Co=16 set t_Sf=[3%dm set t_Sb=[4%dm endif if has("autocmd") " Enabled file type detection " Use the default filetype settings. If you also want to load indent files " to automatically do language-dependent indenting add 'indent' as well. filetype plugin on endif " has ("autocmd") " Some Debian-specific things if has("autocmd") augroup filetype au BufRead reportbug.* set ft=mail au BufRead reportbug-* set ft=mail augroup END endif " Set paper size from /etc/papersize if available (Debian-specific) if filereadable("/etc/papersize") try let s:shellbak = &shell let &shell="/bin/sh" "if strlen(s:papersize) " let &printoptions = "paper:" . s:papersize "endif catch /^Vim\%((\a\+)\)\=:E145/ endtry endif "set showcmd " Show (partial) command in status line. "set showmatch " Show matching brackets. "set ignorecase " Do case insensitive matching "set incsearch " Incremental search "set autowrite " Automatically save before commands like :next and :make syntax enable set background=dark " set mouse=a " GPG map :% !gpg --armor --encrypt 2>/dev/null map :% !gpg --decrypt 2>/dev/null map :% !gpg --armor --symmetric --cipher-algo AES192 " Window map imap i map _ imap __i " LaTeX map :!latex % map :!evince %<.dvi " C > mettre une condition pour savoir si l'on édite bien un fichier source C map A :^i/* $a */ map Q :^i$a map Z ::r!date^i/* $a */ map E :^i map D :^i map :!clear && gcc -Wall -g % map :!clear && ./a.out " others map :%!xxd