0

What keys should be used to enter ^y in the vim editor. For example,

hello ^m
Welcome ^m
^y^m

Here ^y^m is used to separate paragraphs.

3

You can type any literal character with <ctrl-v><character>. Thus, to type ^y you can type <ctrl-v><ctrl-y>.


As pointed out by @mMontu in the comments, it is possible that <ctrl-v> is mapped to something else, e.g. on Windows if $VIMRUNTIME/mswin.vim is loaded. One can check if there is any custom mappings with :map <c-v>.

| improve this answer | |
  • 1
    It is possible that <kbd>Ctrl</kbd>+<kbd>V</kbd>is mapped to something else(for example, $VIMRUNTIME/mswin.vim maps it to <kbd>Ctrl</kbd>+<kbd>Q</kbd>). – mMontu Oct 4 '17 at 12:09

Your Answer

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

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