![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
@sudo apt install vim @sudo apt install vim-gtk3
" Disable compatibility with vi which can cause unexpected issues. ial command you type in the last line of the screen. set showcmd " Show the mode you are on the last line. set showmode " Show matching words during a search. set showmatch " Use highlighting when doing a search. set hlsearch ommands to save in history default number is 20. set history=1000 " Enable auto completion menu after pressing TAB. set wildmenu " Make wildmenu behave like similar to Bash completion. set wildmode=list:longest " There are certain files that we would never want to edit with Vim. " Wildmenu will ignore files with these extensions. set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx " PLUGINS ---------------------------------------------------------------- {{{ " Plugin code goes here. " }}} " MAPPINGS --------------------------------------------------------------- {{{ " Mappingsexplications
Les principaux points de la configuration sont:mise en valeur de la syntaxe sont l'affichage en fonction du type de fichier:
" Turn syntax highlighting on. syntax on@h3/ Le curseur La mise en evidence du curseur afin de savoir où on se trouve dans le fichier et se repérer:" Add numbers to each line on the left-hand side. set number " Highlight cursor line underneath the cursor horizontally. set cursorline@h3/ l'indentation L'indentatiion est définie ainsi:" Load an indent file for the detected file type. filetype indent on " Set shift width to 3 spaces. set shiftwidth=3 " Set tab width to 3 columns. set tabstop=3 " Use space characters instead of tabs. set expandtabfichiers géréa par vi
Les fichiers binaires (comme .docx, .pdf, .png, etc..) sont exclu:On fixe le pas d'indentation à trois espaces et on n'utilisera que des espaces (pas de tab). " There are certain files that we would never want to edit with Vim. " Wildmenu will ignore files with these extensions. set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsxplugins
La derniere partie à partir de" PLUGINS ---------------------------------------------------------------- {{{ "est destinée à préparer la mise en place de future extension.