Questions tagged [operator]
The operator tag has no usage guidance.
7
questions
3
votes
2answers
69 views
Keep cursor from moving when using operators
I'm trying to implement a custom operator following :h :map-operator.
The operator works just fine but has the side effect of moving the cursor position!
For example the code defining the <F4> ...
3
votes
1answer
72 views
Creating custom text objects via omap - How to run functions after the motion
I've done extensive reading including :h omap-info and Vim the hardway operator pending mode, this part is espcially good:
A good way to keep the multiple ways of creating operator-pending
mappings ...
2
votes
1answer
86 views
Why doesn't d_ delete to the first non-blank character on the line?
v^ and v_ both select to the first non-blank character on the line.
d^ deletes to the first non-blank character on the line, but d_ deletes the entire line.
Why is this? Is there any reason to use ...
2
votes
1answer
118 views
Operator Modifier
I have been using vim mode for atom for quite a while,
recently I've been trying to switch to nvim, but I can't seem to find a way to replicate the operator modifiers behaviour, which I've come to ...
0
votes
0answers
55 views
Find out last used text object
I'm trying to figure out a way to make a repeatable operator insert. To do so I'm trying to make use of tpope/repeat. My idea is to set a repeatable call that repeats the last operation, repeating the ...
0
votes
2answers
126 views
Making operator insert and append repeatable
Is there an insert and append operation that can be followed by a text-object? I've found this plugins:
https://github.com/deris/vim-operator-insert
https://github.com/mwgkgk/vim-operator-insert
...
1
vote
1answer
97 views
How to create new operator by using existing operator with current motion?
function! OperatorFunc(type, ...)
" how to call another operator with current motion?
" do other stuff
endfunction
Is it possible to get motion text? such as get iw from yiw