Skip to content

Commit

Permalink
Add customization instructions
Browse files Browse the repository at this point in the history
This is the same setup for any textobj-user plugin, but their
documentation isn't very clear -- took me some fumbling about.
  • Loading branch information
idbrii committed Nov 6, 2020
1 parent caff6ee commit efb8c90
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,28 @@ and even unecessary for certain operations.
This plugin adds `ic`, `ac`, `iC`, and `aC` as text-objects. Use them in
commands like `vic`, `cic`, and `daC`.

These mappings are customizable. To change the default mappings from `c` to `q`
add to your vimrc (or see `:help textobj-user-reference`):
```vim
let g:textobj_wordcolumn_no_default_key_mappings = 1
call textobj#user#map('wordcolumn', {
\ 'word' : {
\ 'select-i' : 'iq',
\ 'select-a' : 'aq',
\ },
\ 'WORD' : {
\ 'select-i' : 'iQ',
\ 'select-a' : 'aQ',
\ },
\ })
```

### Dependencies

This plugin requires the [vim-textobj-user](https://github.com/kana/vim-textobj-user) plugin.


### Learn more in the plugin doc:

https://github.com/idbrii/textobj-word-column.vim/blob/master/doc/textobj-word-column.txt
Expand Down

0 comments on commit efb8c90

Please sign in to comment.