Browse Source

Ajout du plugin CamelCaseMotion
+ configuration pour modifier les mouvements w, b, e de base

Thibaut Marty 10 years ago
parent
commit
dfe09e5d89
4 changed files with 13 additions and 0 deletions
  1. 3 0
      .gitmodules
  2. 1 0
      README.md
  3. 1 0
      bundle/CamelCaseMotion
  4. 8 0
      vimrc

+ 3 - 0
.gitmodules

@@ -34,3 +34,6 @@
 [submodule "bundle/mustang-vim"]
 	path = bundle/mustang-vim
 	url = https://github.com/croaker/mustang-vim
+[submodule "bundle/CamelCaseMotion"]
+	path = bundle/CamelCaseMotion
+	url = https://github.com/bkad/CamelCaseMotion

+ 1 - 0
README.md

@@ -31,3 +31,4 @@ cd ~/non-ultimate-vimrc
 * [Node.vim](https://github.com/moll/vim-node)
 * [vim-jade](https://github.com/digitaltoad/vim-jade)
 * [mustang (modifié)](https://github.com/croaker/mustang-vim)
+* [CamelCaseMotion.vim](https://github.com/bkad/CamelCaseMotion)

+ 1 - 0
bundle/CamelCaseMotion

@@ -0,0 +1 @@
+Subproject commit b480bf78ab015118d59409f3931a637548d0c244

+ 8 - 0
vimrc

@@ -123,6 +123,14 @@ set nofoldenable
 "# Désactive l'accès au mode Ex
 map Q <Nop>
 
+"# Remap les mouvements normaux (w, b, e) en mouvements CamelCaseMotion
+map <silent> w <Plug>CamelCaseMotion_w
+map <silent> b <Plug>CamelCaseMotion_b
+map <silent> e <Plug>CamelCaseMotion_e
+sunmap w
+sunmap b
+sunmap e
+
 "# Active l'indentation et les plugins spécifiques
 filetype indent on
 filetype plugin on