2

I am using vim --remote-send. As per the documentation It automatically expands "special" key signifiers, so that e.g. vim --remote-send "<C-t>" simulates pressing ctrl-t. I would like to send the literal key sequence <,C,-,t,>, but vim's documentation offers no clues. I have tried vim --remote-send '\<C-t>' but this just does a literal backslash followed by ctrl-t. How can I escape special sequences?

1 Answer 1

5

In any context where a "keycode" is expected, use <lt> to represent a literal <.

vim --remote-send "<lt>C-t>"

See also :help keycodes.

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.