Browse Source

Plein de nouveautés !

Thibaut Marty 8 years ago
parent
commit
6f2f320b86
12 changed files with 49 additions and 24 deletions
  1. 2 4
      README.md
  2. 2 0
      ftplugin/mail.vim
  3. 2 0
      ftplugin/ocaml.vim
  4. 0 2
      ftplugin/php.vim
  5. 2 0
      ftplugin/tex.vim
  6. 4 0
      mappings.vim
  7. 0 3
      phphelp
  8. 2 4
      plugins.vim
  9. 8 0
      set.vim
  10. 1 1
      specifiques.vim
  11. 18 10
      theme.vim
  12. 8 0
      vimrc

+ 2 - 4
README.md

@@ -42,21 +42,19 @@ rm -rf .vim .vimrc
 ## Liste des plugins
 
 * [nerdtree](https://github.com/scrooloose/nerdtree)
-* [nerdcommenter](https://github.com/scrooloose/nerdcommenter)
 * [supertab](https://github.com/ervandew/supertab)
 * [vim-numbertoggle](https://github.com/jeffkreeftmeijer/vim-numbertoggle)
 * [vim-fugitive](https://github.com/tpope/vim-fugitive)
 * [vim-gitgutter](https://github.com/airblade/vim-gitgutter)
 * [matchit](https://github.com/tmhedberg/matchit)
-* [vim-node](https://github.com/moll/vim-node)
-* [mustang-vim](https://github.com/croaker/mustang-vim)
+* [gruvbox](https://github.com/morhetz/gruvbox)
 * [CamelCaseMotion](https://github.com/bkad/CamelCaseMotion)
 * [vim-autoclose](https://github.com/Townk/vim-autoclose)
 * [vim-endwise](https://github.com/tpope/vim-endwise)
 * [vim-easymotion](https://github.com/Lokaltog/vim-easymotion)
 * [vim-easy-align](https://github.com/junegunn/vim-easy-align)
 * [omlet.vim](https://github.com/vim-scripts/omlet.vim)
-* [DoxygenToolkit.vim](https://github.com/vim-scripts/DoxygenToolkit.vim)
+* [vim-windowswap](https://github.com/wesQ3/vim-windowswap)
 
 ## Licence
 

+ 2 - 0
ftplugin/mail.vim

@@ -0,0 +1,2 @@
+"# Active la correction
+set spell

+ 2 - 0
ftplugin/ocaml.vim

@@ -0,0 +1,2 @@
+"# Pas de hightlight de ligne courante
+set nocursorline

+ 0 - 2
ftplugin/php.vim

@@ -1,2 +0,0 @@
-"# Programme d'aide
-set keywordprg=~/.vim/phphelp

+ 2 - 0
ftplugin/tex.vim

@@ -1,2 +1,4 @@
 "# Active la correction
 set spell
+
+set linebreak

+ 4 - 0
mappings.vim

@@ -32,6 +32,7 @@ nmap <Leader>s :%s/\s\+$//e<CR>:nohlsearch<CR>
 "# Mapping pour créer le fichier tags (nécessite ctags)
 nmap <silent> <Leader><Leader>g :silent r!ctags -R &<CR>:echo "génération des tags lancée"<CR>
 
+" TODO : buffer
 "# Mapping pour ouvrir la première correspondance du tag
 " sous le curseur dans un nouvel onglet
 " (autres correspondances accessibles avec :tn / :tp)
@@ -40,3 +41,6 @@ nmap <Leader>g <C-w><C-]><C-w>T
 "# Mapping pour aller à la faute précédente/suivante (spell)
 nmap (s [s
 nmap )s ]s
+
+"# Mapping pour aller à la marque au caractère près
+nmap ' `

+ 0 - 3
phphelp

@@ -1,3 +0,0 @@
-#!/bin/sh
-
-xdg-open http://www.php.net/$1 > /dev/null 2>&1

+ 2 - 4
plugins.vim

@@ -6,21 +6,19 @@ Plugin 'gmarik/Vundle.vim'
 
 "# Liste des plugins
 Plugin 'scrooloose/nerdtree'
-Plugin 'scrooloose/nerdcommenter'
 Plugin 'ervandew/supertab'
 Plugin 'jeffkreeftmeijer/vim-numbertoggle'
 Plugin 'tpope/vim-fugitive'
 Plugin 'airblade/vim-gitgutter'
 Plugin 'tmhedberg/matchit'
-Plugin 'moll/vim-node'
-Plugin 'croaker/mustang-vim'
+Plugin 'morhetz/gruvbox'
 Plugin 'bkad/CamelCaseMotion'
 Plugin 'Townk/vim-autoclose'
 Plugin 'tpope/vim-endwise'
 Plugin 'Lokaltog/vim-easymotion'
 Plugin 'junegunn/vim-easy-align'
 Plugin 'vim-scripts/omlet.vim'
-Plugin 'vim-scripts/DoxygenToolkit.vim'
+Plugin 'wesQ3/vim-windowswap'
 
 call vundle#end()
 

+ 8 - 0
set.vim

@@ -50,6 +50,8 @@ set sidescroll=1
 set incsearch
 set ignorecase
 set smartcase
+" /g par défaut (remettre /g pour annuler)
+set gdefault
 " Surligne les résultats
 set hlsearch
 " et pour l'enlever : ,/
@@ -87,3 +89,9 @@ set confirm
 
 "# Surligne la ligne courante
 set cursorline
+
+"# Formatte le texte en le justifiant à 72 caractères (avec gq)
+set formatprg=par\ -j\ -w72
+
+"# Autorise de changer de buffer sans sauvegarder
+set hidden

+ 1 - 1
specifiques.vim

@@ -19,6 +19,6 @@ augroup DernierePosition
     \ endif
 augroup END
 
-"# Ouvre la fenêtre de quickfix après :make
+"# Ouvre la fenêtre de quickfix après :make, :grep…
 autocmd QuickFixCmdPost [^l]* nested cwindow
 autocmd QuickFixCmdPost    l* nested lwindow

+ 18 - 10
theme.vim

@@ -1,20 +1,28 @@
+"# Active la coloration syntaxique
+syntax enable
+
+"# Mode sombre
+set background=dark
+
 "# Thème
 try
-  colorscheme mustang
+  colorscheme gruvbox
 catch
 endtry
 
-"# Active la coloration syntaxique
-syntax enable
+"# Couleurs des mots mal écrits (exmaple)
+highlight clear SpellBad
+highlight SpellBad cterm=underline ctermfg=red
+highlight clear SpellCap
+highlight SpellCap cterm=underline ctermfg=blue
+highlight clear SpellLocal
+highlight SpellLocal cterm=underline ctermfg=blue
+highlight clear SpellRare
+highlight SpellRare cterm=underline ctermfg=blue
 
 "# Couleur pour GitGutter
-highlight SignColumn ctermbg=232
-
-"# Pas d'italique dans la statusline
-highlight StatusLine cterm=italic
+"highlight clear SignColumn
+"highlight SignColumn ctermbg=235
 
 "# Pas de soulignement sous la ligne courante
 highlight CursorLine cterm=none
-
-"# Couleurs des TODO et FIXME
-highlight Todo ctermbg=231 ctermfg=232

+ 8 - 0
vimrc

@@ -5,3 +5,11 @@ source ~/.vim/statusline.vim
 source ~/.vim/theme.vim
 source ~/.vim/specifiques.vim
 source ~/.vim/mappings.vim
+
+" TODO https://github.com/fholgado/minibufexpl.vim
+" Fix N CTRL-^
+" ou https://github.com/jlanzarotta/bufexplorer
+" ou https://github.com/ngn/vim-buf
+" ou
+  " https://bling.github.io/blog/2013/06/02/unite-dot-vim-the-plugin-you-didnt-know-you-need/ 
+  " https://github.com/Shougo/unite.vim