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?
Asked
Active
Viewed 58 times
2
Sean Mackesey
- 342
- 2
- 12
1 Answers
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.
Justin M. Keyes
- 827
- 6
- 13