Skip to content

Abolish

Abolish is a port of vim-abolish by @tpope.

Coercion

Abolish's case mutating algorithms can be applied to the word under the cursor using the cr mapping (mnemonic: CoeRce) followed by one of the following characters:

KeyAlgorithm
ccamelCase
pPascalCase
mMixedCase (aka PascalCase)
_snake_case
ssnake_case
uSNAKE_UPPERCASE
USNAKE_UPPERCASE
kkebab-case (not usually reversible; see abolish-coercion-reversible)
-dash-case (aka kebab-case)
.dot.case (not usually reversible; see abolish-coercion-reversible)

For example, cru on a lowercase word is a slightly easier to type equivalent to gUiw.

Multiple cursor
  1. CTRL-n Enter multiple cursor.
  2. n Add next match.
  3. <Esc> Enter normal mode.
  4. cru Coerce to uppercase.

See the multiple cursors documentation for more details.

Coercion reversibility

Some separators, such as "-" and ".", are listed as "not usually reversible".

The reason is that these are not "keyword characters", so vim (and abolish.vim) will treat them as breaking a word.

For example: "key_word" is a single keyword. The dash-case version, "key-word", is treated as two keywords, "key" and "word".

Settings

vintageous_enable_abolish

  • Type: boolean
  • Default: true

Enable abolish plugin.

Status

StatusCommandDescription
cr{algorithm}Case mutating algorithms.
:AbolishSearch and substitute.
:SubvertMore concise syntax for search and substitute.

Check out the roadmap for a detailed inventory of feature status.