vim-textobj-user
vim-textobj-user copied to clipboard
Vim plugin: Create your own text objects
Vim will automatically move the cusor to the next text object when target object is not under cursor. For example, if you run `di"` on following example, when cursor is...
```vim call textobj#user#plugin('newline', { \ '-': { \ 'pattern': '\n', \ 'select': 'n', \ }, \ }) ``` Instead of matching a single newline like expected, this matches from the...
Thank you very much for building this plugin, it's really cool :) I was wondering if you'd be willing to take a PR enabling users to pass actual functions instead...
I tried making use of the _Makefile_ I found in the archive, but no joy: ```bash Davids-Air-2:vim-textobj-user-0.3.12 dbanas$ ls │ Makefile autoload doc mduem test │GHCi, version 8.0.2: http://www.haskell.org/ghc/ :?...
This patch allows `move-n` etc. to work when a textobject is defined using a list with separate start and end patterns. Without this fix, an error is generated when the...
Hi Kana, I noticed that vim-textobj-user overwrites the last visual selection, for example, with `yil` and vim-textobj-line. It seems that this issue has been fixed before #55 , but in...
Hi, I would like to use your plugin, but I'm not sure if it is covered by the Vim license or some other license. It would be great to add...
If I have my cursor placed in this line where the square brackets are as such: `my_underscore_wor[d]`, and then run `di_`, the resulting string is `my_underscore_[o]rd`. Similarly, running `da_` instead...
From: https://github.com/kana/vim-textobj-user/issues/56#issuecomment-331746213 > Perhaps semi-related: I'm noticing that when I specifically do a yie, the '< and '> marks are no longer what they should be if the last visually-selected...
I'm not sure this is the right place to ask, but I often find myself with the cursor on the start of a line, for instance like this: ``` \emph{wrong...