plugins.vim 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. "# Chargement de Vundle
  2. filetype off
  3. set rtp+=~/.vim/bundle/Vundle.vim
  4. call vundle#begin()
  5. Plugin 'gmarik/Vundle.vim'
  6. "# Liste des plugins
  7. Plugin 'scrooloose/nerdtree'
  8. Plugin 'jeffkreeftmeijer/vim-numbertoggle'
  9. Plugin 'tpope/vim-fugitive'
  10. Plugin 'tpope/vim-dispatch'
  11. Plugin 'airblade/vim-gitgutter'
  12. Plugin 'tmhedberg/matchit'
  13. Plugin 'morhetz/gruvbox'
  14. Plugin 'bkad/CamelCaseMotion'
  15. Plugin 'Townk/vim-autoclose'
  16. Plugin 'tpope/vim-endwise'
  17. Plugin 'majutsushi/tagbar'
  18. Plugin 'jeetsukumaran/vim-buffergator'
  19. Plugin 'mbbill/undotree'
  20. Plugin 'wesQ3/vim-windowswap'
  21. Plugin 'vim-airline/vim-airline'
  22. Plugin 'tpope/vim-commentary'
  23. Plugin 'ervandew/supertab'
  24. " TODO lire :h ins-completion
  25. " TODO : retab <tab> to <C-X><??> ?
  26. Plugin 'justmao945/vim-clang'
  27. "Plugin 'Valloric/YouCompleteMe'
  28. "Plugin 'jvoorhis/coq.vim'
  29. "Plugin 'vim-scripts/CoqIDE'
  30. " Dépendance pour coquille
  31. Plugin 'let-def/vimbufsync'
  32. Plugin 'the-lambda-church/coquille'
  33. " TODO ocaml: fichier .annot, maps (ANNOT : trouve le type du mot sous le curseur :D)
  34. " http://stackoverflow.com/questions/15514908/which-is-the-current-setup-to-use-ocaml-in-vim/17234163#17234163
  35. " annot : require compile with -annot
  36. au BufRead,BufNewFile *.ml,*.mli compiler ocaml
  37. " a tester
  38. " ocaml : https://github.com/the-lambda-church/merlin
  39. " coq : https://github.com/the-lambda-church/coquille
  40. "Plugin 'xolox/vim-misc' " dépendance pour vim-easytags
  41. "Plugin 'xolox/vim-easytags' " idem ====> Que le fichier en cours ? Aucun intérêt si oui
  42. "Plugin 'airblade/vim-rooter' " combiné avec les tags (pour éviter d'avoir des fichiers tags dans les sous-dossiers)
  43. "Plugin 'octol/vim-cpp-enhanced-highlight' " idem
  44. "Plugin 'Xuyuanp/nerdtree-git-plugin' " => caractères moches
  45. " http://vim.wikia.com/wiki/Compiling_LaTeX_from_Vim#Automatic_LaTeX_plugin (à mettre dans ftplugin/tex ?)
  46. " Plugin 'coot/atp_vim'
  47. " TODO : cscope ?
  48. " https://en.wikipedia.org/wiki/Cscope
  49. " http://vim.wikia.com/wiki/Browsing_programs_with_tags#Comments
  50. call vundle#end()
  51. "# Remap les mouvements normaux (w, b, e) en mouvements CamelCaseMotion
  52. map <silent> w <Plug>CamelCaseMotion_w
  53. map <silent> b <Plug>CamelCaseMotion_b
  54. map <silent> e <Plug>CamelCaseMotion_e
  55. map <silent> ge <Plug>CamelCaseMotion_ge
  56. sunmap w
  57. sunmap b
  58. sunmap e
  59. sunmap ge
  60. "# Mapping pour activer/désactiver vim-autoclose
  61. nmap <silent> <Leader>a :AutoCloseToggle<CR>
  62. "# Mapping pour ouvrir/fermer NERDTree
  63. nmap <silent> <Leader>t :NERDTreeToggle<CR>
  64. "# Mapping pour ouvrir/fermer TagBar
  65. nmap <silent> <Leader>r :TagbarToggle<CR>
  66. "# Mapping pour ouvrir/fermer Undotree
  67. nmap <silent> <Leader>u :UndotreeToggle<CR>
  68. "# Mapping pour GitGutter
  69. nmap <silent> gu :GitGutterUndoHunk<CR>
  70. nmap <silent> gn :GitGutterNextHunk<CR>
  71. nmap <silent> gp :GitGutterPrevHunk<CR>
  72. "# Ouvre NERDTree automatiquement
  73. "autocmd vimenter * NERDTree
  74. " focus sur la fenêtre principale
  75. "autocmd vimenter * wincmd w
  76. " et ferme vim s'il ne reste que NERDTree
  77. autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
  78. " NERDTree à droite
  79. let g:NERDTreeWinPos = "right"
  80. "# Paramètres de buffergator
  81. " Pas de chemin absolu
  82. let g:buffergator_show_full_directory_path = 0
  83. " Désactive tous les raccourcis d'accès
  84. let g:buffergator_suppress_keymaps = 1
  85. " Sauf ceux-ci :
  86. nmap <Leader>b :BuffergatorOpen<CR>
  87. nmap gb <C-^>
  88. " Fenêtre en haut, hauteur 8
  89. let g:buffergator_viewport_split_policy = "T"
  90. let g:buffergator_hsplit_size = 8
  91. "# Paramètres de Airline
  92. " Pas de vérifications sur les caractères blancs
  93. let g:airline#extensions#whitespace#checks = []
  94. "# N'active pas le completement automatiquement pour vim-clang
  95. "let g:clang_auto = 0
  96. " TODO : plutôt regrouper par outils (coq, …)
  97. "# Paramètres de vim-commentary
  98. autocmd FileType coq setlocal commentstring=(*\ %s\ *)
  99. map <buffer> <silent> <M-c> :CoqLaunch<CR>
  100. map <buffer> <silent> <M-j> :CoqNext<CR>
  101. map <buffer> <silent> <M-k> :CoqUndo<CR>
  102. map <buffer> <silent> <M-l> :CoqToCursor<CR>
  103. "# Paramètres de coquille
  104. " Bouge le curseur
  105. let g:coquille_auto_move = 'true'
  106. "# Active l'indentation et les plugins spécifiques
  107. filetype indent on
  108. filetype plugin on