mirror of
https://github.com/amix/vimrc
synced 2025-06-30 20:05:01 +08:00
Updated plugins
This commit is contained in:
@ -117,9 +117,9 @@ There's also a variant for searching and a variant for grepping.
|
||||
## Coercion
|
||||
|
||||
Want to turn `fooBar` into `foo_bar`? Press `crs` (coerce to
|
||||
snake\_case). MixedCase (`crm`), camelCase (`crc`), UPPER\_CASE (`cru`),
|
||||
dash-case (`cr-`), dot.case (`cr.`), space case (`cr<space>`), and
|
||||
Title Case (`crt`) are all just 3 keystrokes away.
|
||||
snake\_case). MixedCase (`crm`), camelCase (`crc`), UPPER\_CASE
|
||||
(`cru`), dash-case (`cr-`), and dot.case (`cr.`) are all just 3
|
||||
keystrokes away.
|
||||
|
||||
## Installation
|
||||
|
||||
|
@ -142,10 +142,6 @@ function! s:dotcase(word)
|
||||
return substitute(s:snakecase(a:word),'_','.','g')
|
||||
endfunction
|
||||
|
||||
function! s:titlecase(word)
|
||||
return substitute(s:spacecase(a:word), '\(\<\w\)','\=toupper(submatch(1))','g')
|
||||
endfunction
|
||||
|
||||
call extend(Abolish, {
|
||||
\ 'camelcase': s:function('s:camelcase'),
|
||||
\ 'mixedcase': s:function('s:mixedcase'),
|
||||
@ -154,7 +150,6 @@ call extend(Abolish, {
|
||||
\ 'dashcase': s:function('s:dashcase'),
|
||||
\ 'dotcase': s:function('s:dotcase'),
|
||||
\ 'spacecase': s:function('s:spacecase'),
|
||||
\ 'titlecase': s:function('s:titlecase')
|
||||
\ }, 'keep')
|
||||
|
||||
function! s:create_dictionary(lhs,rhs,opts)
|
||||
@ -574,7 +569,6 @@ call extend(Abolish.Coercions, {
|
||||
\ 'k': Abolish.dashcase,
|
||||
\ '.': Abolish.dotcase,
|
||||
\ ' ': Abolish.spacecase,
|
||||
\ 't': Abolish.titlecase,
|
||||
\ "function missing": s:function("s:unknown_coercion")
|
||||
\}, "keep")
|
||||
|
||||
|
Reference in New Issue
Block a user