1

I have bind q to :qa that hides q:.

Is there a command to enter the Command Line Window that is not q:?

How to access the Command Line Window without typing: q:?

3
  • Press : to enter a vim command. Or are you talking in vimscript, or from invoking vim from the command line or a shell script? Dec 9, 2022 at 17:58
  • I want to launch the Command line window (q:) from a Command Dec 9, 2022 at 19:33
  • I would be interested to understand what you mean by boud q to :qa. Do you mean cnoremap, do you mean cnoreabbrev do you add test about the position of q in the command line. Dec 9, 2022 at 20:31

4 Answers 4

0

The sequence :Ctrl-f will do (:help cedit). Also :normal! q:.

2

You could bind something else to open the command-line window using a noremap:

:nnoremap Q: q:

See :help :noremap.

0

You can do:

:call feedkeys("q:", "n")
0

This works:

:norm! q:

The ! makes normal skip the custom mapping.

2
  • This was part of the answer I posted.
    – D. Ben Knoble
    Dec 13, 2022 at 13:20
  • Ah yes, sorry :) Dec 13, 2022 at 14:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.