From f5a826175d0bf0a27b6d2292e4f2c0e1133bbdc3 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Mon, 7 Dec 2015 17:57:11 -0600 Subject: [PATCH] Add Coercing Casing With vim-abolish as a vim til. --- README.md | 1 + vim/coercing-casing-with-vim-abolish.md | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 vim/coercing-casing-with-vim-abolish.md diff --git a/README.md b/README.md index ac5f1d9..b3c1891 100644 --- a/README.md +++ b/README.md @@ -263,6 +263,7 @@ smart people at [Hashrocket](http://hashrocket.com/). - [Check Your Current Color Scheme](vim/check-your-current-color-scheme.md) - [Close the Current Buffer](vim/close-the-current-buffer.md) - [Coerce The Current Filetype](vim/coerce-the-current-filetype.md) +- [Coercing Casing With vim-abolish](vim/coercing-casing-with-vim-abolish.md) - [Count the Number of Matches](vim/count-the-number-of-matches.md) - [Create A New Directory In netrw](vim/create-a-new-directory-in-netrw.md) - [Create A New File In A New Directory](vim/create-a-new-file-in-a-new-directory.md) diff --git a/vim/coercing-casing-with-vim-abolish.md b/vim/coercing-casing-with-vim-abolish.md new file mode 100644 index 0000000..0c9e6e0 --- /dev/null +++ b/vim/coercing-casing-with-vim-abolish.md @@ -0,0 +1,12 @@ +# Coercing Casing With vim-abolish + +The [`vim-abolish`](https://github.com/tpope/vim-abolish) plugin provides a +couple handy shortcuts for quickly coercing the casing of a variable. + +For instance, if you have a variable in camel case and you want to change it +snake case, you can navigate over the variable and hit `crs` (e.g. +`myFavoriteVariable` -> `my_favorite_variable`). + +Similarly, you can hit `crc` to change a variable to camel case. + +It even has support for mixed case (`crm`) and uppercase (`cru`).