Skip to content

Commit

Permalink
Clean up textobj#user#plugin invocation
Browse files Browse the repository at this point in the history
Use more descriptive keys (I think these are optional, but 'word' is
clearer than 'w').

Make each entry in the dictionary on its own line (like the textobj-user
docs).
  • Loading branch information
idbrii committed Aug 11, 2014
1 parent 0272c79 commit dede70e
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions plugin/textobj/word-column.vim
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ let s:save_cpo = &cpo
set cpo&vim

call textobj#user#plugin('wordcolumn', {
\ 'w' : {
\ 'select-i' : 'ic', 'select-i-function' : 'textobj#word_column#select_iw',
\ 'select-a' : 'ac', 'select-a-function' : 'textobj#word_column#select_aw',
\ 'word' : {
\ 'select-i' : 'ic',
\ 'select-i-function' : 'textobj#word_column#select_iw',
\ 'select-a' : 'ac',
\ 'select-a-function' : 'textobj#word_column#select_aw',
\ },
\ 'W' : {
\ 'select-i' : 'iC', 'select-i-function' : 'textobj#word_column#select_iW',
\ 'select-a' : 'aC', 'select-a-function' : 'textobj#word_column#select_aW',
\ 'WORD' : {
\ 'select-i' : 'iC',
\ 'select-i-function' : 'textobj#word_column#select_iW',
\ 'select-a' : 'aC',
\ 'select-a-function' : 'textobj#word_column#select_aW',
\ },
\ })

Expand Down

0 comments on commit dede70e

Please sign in to comment.