Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [map-operator]

Use this tag for questions about creating your own operator within vim.

3 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
1 answer

Get motion used within operatorfunction?

How can I make a custom operator function that can programmatically reuse the motion that the user called it with? E.g. I want to map the operator m so that miw goes to the start of the file and then ...
minseong's user avatar
  • 2,333
2 votes
0 answers

Do operator ranges/movements/textobjects always overwrite the last visual selection? workaround?

In vim, when I operate on a textobject from a plugin, say the 'inner indent' typed ii from kana/vim-textobj-indent, my last visual selection ('>, '<) is reset to where the operator worked on. ...
simlei's user avatar
  • 113
2 votes
0 answers

Avoid ending up in mode from onoremap

When I'm on an empty line and press cfa, nothing happens, whereas on a line with an a, it will go into insert mode. E.g. I have this: onoremap <silent> a :normal! Favfz Whether I am on an ...
hgiesel's user avatar
  • 1,944