1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-04 23:58:01 +00:00

Add Coercing Casing With vim-abolish as a vim til.

This commit is contained in:
jbranchaud
2015-12-07 17:57:11 -06:00
parent b951071f12
commit f5a826175d
2 changed files with 13 additions and 0 deletions

View File

@@ -263,6 +263,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
- [Check Your Current Color Scheme](vim/check-your-current-color-scheme.md) - [Check Your Current Color Scheme](vim/check-your-current-color-scheme.md)
- [Close the Current Buffer](vim/close-the-current-buffer.md) - [Close the Current Buffer](vim/close-the-current-buffer.md)
- [Coerce The Current Filetype](vim/coerce-the-current-filetype.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) - [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 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) - [Create A New File In A New Directory](vim/create-a-new-file-in-a-new-directory.md)

View File

@@ -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`).