fichiers_config
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| fichiers_config [2019/11/12 17:17] – norore | fichiers_config [2019/11/12 17:32] (Version actuelle) – [Plugins :] norore | ||
|---|---|---|---|
| Ligne 15: | Ligne 15: | ||
| </ | </ | ||
| - | Plugins : | + | ===== Plugins : |
| - | * nerdtree | + | * [[https:// |
| - | * YouCompleteMe : autocomplétion, | + | * [[https:// |
| - | * syntastic : vérifie les erreurs de syntaxe | + | * [[https:// |
| - | * vim-polyglot : colorisation syntaxique multi-langages | + | * [[https:// |
| - | * vim-fugitive : ajoute des options d’interaction avec Git | + | * [[https:// |
| - | * nerdtree-git-plugin : ajouter des icônes et couleurs dans NERDTree en fonction de l’état des fichiers versionnés avec Git | + | * [[https:// |
| - | * vim-symfony : colorisation syntaxique spécifique pour Symfony | + | * [[https:// |
| - | * vim-twig : colorisation syntaxique spécifique pour Twig (moteur de template de Symfony) | + | * [[https:// |
| - | * vim-rails : colorisation syntaxique spécifique pour Ruby-On-Rails | + | * [[https:// |
| - | * vim-closetag : fermeture automatique des tags HTML (parce que c’est relou de taper deux fois la balise et que parfois j’oublie d’en fermer une…) | + | * [[https:// |
| - | * vim-markdown : support pour MarkDown | + | * [[https:// |
| - | * tabular : support pour les tableaux en MarkDown | + | * [[https:// |
| - | * lightline.vim : un affichage plus beau visuellement pour la barre de statut de vim | + | * [[https:// |
| - | * vim-css-color : ajoute en surbrillance la couleur CSS saisie dans la feuille de style | + | * [[https:// |
| - | Colorscheme : | + | ===== Colorscheme : |
| - | * ayu-vim : à tester | + | * [[https:// |
| - | * falcon : à retester, je ne sais plus pourquoi j’avais rapidement opté pour molokai ? | + | * [[https:// |
| - | * molokai : j’aime bien mais quelques défauts, notamment pour la position du curseur au niveau des balises HTML | + | * [[https:// |
| - | * onedark : celui que j’utilise en ce moment | + | * [[https:// |
| - | [[fichiers_config: | + | ===== Configuration |
| + | |||
| + | <code vim> | ||
| + | set nocompatible | ||
| + | filetype off " required | ||
| + | |||
| + | " set the runtime path to include Vundle and initialize | ||
| + | set rtp+=~/ | ||
| + | call vundle# | ||
| + | |||
| + | " let Vundle manage Vundle, required | ||
| + | Plugin ' | ||
| + | |||
| + | " The following are examples of different formats supported. | ||
| + | " Keep Plugin commands between vundle# | ||
| + | Plugin ' | ||
| + | |||
| + | Plugin ' | ||
| + | |||
| + | Plugin ' | ||
| + | Plugin ' | ||
| + | |||
| + | " Support pour git | ||
| + | Plugin ' | ||
| + | Plugin ' | ||
| + | |||
| + | " Config pour symfony et twig | ||
| + | Plugin ' | ||
| + | Plugin ' | ||
| + | |||
| + | " Config pour Rails | ||
| + | Plugin ' | ||
| + | |||
| + | " Fermer des tags ouverts | ||
| + | Plugin ' | ||
| + | |||
| + | " Support markdown | ||
| + | Plugin ' | ||
| + | Plugin ' | ||
| + | |||
| + | " interface | ||
| + | Plugin ' | ||
| + | Plugin ' | ||
| + | |||
| + | " colorschemes | ||
| + | Plugin ' | ||
| + | Plugin ' | ||
| + | Plugin ' | ||
| + | Plugin ' | ||
| + | |||
| + | " All of your Plugins must be added before the following line | ||
| + | call vundle# | ||
| + | filetype plugin indent on " required | ||
| + | |||
| + | " General | ||
| + | set number | ||
| + | set linebreak | ||
| + | set showbreak=+++ | ||
| + | set showmatch | ||
| + | set visualbell | ||
| + | |||
| + | set hlsearch | ||
| + | set smartcase | ||
| + | set ignorecase | ||
| + | set incsearch | ||
| + | |||
| + | " Advanced | ||
| + | set ruler | ||
| + | |||
| + | " Show special chars | ||
| + | set list | ||
| + | set listchars=tab: | ||
| + | |||
| + | set undolevels=1000 | ||
| + | set backspace=indent, | ||
| + | |||
| + | " ouvrir Nerdtree par défaut | ||
| + | autocmd vimenter * NERDTree | ||
| + | " fermer vim si nerdtree est le dernier panneau ouvert | ||
| + | autocmd bufenter * if (winnr(" | ||
| + | |||
| + | " folding auto basé sur la syntaxe et manuellement | ||
| + | augroup | ||
| + | au BufReadPre * setlocal foldmethod=indent | ||
| + | au BufWinEnter * if &fdm == ' | ||
| + | augroup END | ||
| + | |||
| + | " forcer la syntaxe ruby pour un document *.prawn | ||
| + | au BufReadPost *.prawn set filetype=ruby | ||
| + | |||
| + | " charger le thème onedark pour la barre de statuts gérée par lightline | ||
| + | let g:lightline = { | ||
| + | \ ' | ||
| + | \ } | ||
| + | |||
| + | "Use 24-bit (true-color) mode in Vim/Neovim when outside tmux. | ||
| + | "If you're using tmux version 2.2 or later, you can remove the outermost $TMUX check and use tmux's 24-bit color support | ||
| + | "(see < http:// | ||
| + | if (empty($TMUX)) | ||
| + | if (has(" | ||
| + | "For Neovim 0.1.3 and 0.1.4 < https:// | ||
| + | let $NVIM_TUI_ENABLE_TRUE_COLOR=1 | ||
| + | endif | ||
| + | "For Neovim > 0.1.5 and Vim > patch 7.4.1799 < https:// | ||
| + | "Based on Vim patch 7.4.1770 (`guicolors` option) < https:// | ||
| + | " < https:// | ||
| + | if (has(" | ||
| + | set termguicolors | ||
| + | endif | ||
| + | endif | ||
| + | |||
| + | syntax on | ||
| + | colorscheme onedark | ||
| + | </ | ||
fichiers_config.1573579027.txt.gz · Dernière modification : de norore
