Skip to content

Instantly share code, notes, and snippets.

@hokaccha
Created November 4, 2009 02:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hokaccha/225729 to your computer and use it in GitHub Desktop.
Save hokaccha/225729 to your computer and use it in GitHub Desktop.
" textobj-camelcase - Text objects for camel case.
" Version: 0.0.1
" Author: Kazuhito Hokamura
" License: MIT license (see <http://www.opensource.org/licenses/mit-license>)
if exists('g:loaded_textobj_camelcase')
finish
endif
call textobj#user#plugin('camelcase', {
\ '-': {
\ '*pattern*': '[A-Za-z][a-z0-9]\+',
\ 'select': ['ac', 'ic'],
\ },
\ })
let loaded_textobj_camelcase = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment