1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 23:28:02 +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

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