Is <C-U> necessary when activating command mode within operator-pending mode mappings?

According to :h omap-info,

        onoremap <silent> F :<C-U>normal! 0f(hviw<CR>
The CTRL-U (<C-U>) is used to remove the range that Vim may insert.

While Vim may insert a range when starting command mode from

  • Visual mode – :'<,'> (see :h v_:) and
  • Normal mode (when preceded by count) – :.,.+(count - 1) (see :h N:),

does it ever insert a range from operator-pending mode? If not, then is the use of <C-U> after : in operator-pending mappings more for consistency with other modal mappings where it actually matters?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.