Thursday, May 12, 2016

Re: What is the special key mark in the Vim macro?

On 2016-05-12, 李哲 wrote:
> 在 2016年5月13日星期五 UTC+8下午2:08:44,李哲写道:
> > I want to edit the macro in my Vim but I don't know how to write
> > the special key in Vim macro like : ESC, backspace, and so on. ?
>
> I tried <BS>. <Backspace>, and `<80>k` but it doesn't work here.

It's difficult to diagnose the problem without more specific
information, like what you actually did, what you expected and what
you observed. The following works for me.

:map <C-P> <BS>

I type Ctrl-P in normal mode and the cursor moves back by one space.

Regards,
Gary

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: