Skip to content

Migrate from vim sunday

Takuya Nishigori edited this page Mar 2, 2014 · 7 revisions

vim-sunday (it's obsolete) can migrate to IncrementActivator.vim by some steps XD

1. Load the plugin

" vim-sunday
"NeoBundle 'nishigori/vim-sunday'

" increment-activator
NeoBundle 'nishigori/increment-activator'

2. Define the list

g:sunday_pairs move to g:increment_activator#config['_']

Oh, IncrementActivator.vim is support filetype definition lists :)

"" vim-sunday
"let g:sunday_pairs = [
"  \   ['extends', 'implements'],
"  \   ['require', 'require_once', 'include', 'include_once'],
"  \   ['pick', 'reword', 'edit', 'squash', 'fixup', 'exec'],
"  \ ]

" increment-activator
let g:increment_activator_filetype_candidates = {
  \   '_': [
  \     ['extends', 'implements'],
  \     ['require', 'require_once', 'include', 'include_once'],
  \     ['pick', 'reword', 'edit', 'squash', 'fixup', 'exec'],
  \   ],
  \ }

3. More advanced

The defalut list removed list (public <-> protected <-> private) by IncrementActivator.vim

If you hope to inherit that, please push list of g:increment_activator_filetype_candidates['_']

let g:increment_activator_filetype_candidates = {
  \   '_': [
  \     ['private', 'protected', 'public'],
  \     [ ... ], ...
  \   ],
  \ }

That's all. Enjoy your incremet life

Clone this wiki locally