Quantcast

Doing ^J

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Doing ^J

Christiano
Hi, I am reading the book "learning vi editor"(linda lamb & arnold robbins 6th edition).
Page 115, the book does a command like this:

:map ^J xyz

The xyz part itself doesnt matter here, my problem is to make the "^J" part.

I have tried
Ctrl+V Ctrl+j (ctrl+v can be used to escape Enter for example)
and
Ctrl+j directly

In both cases it doesn't work.

I am using vi editor inside FreeBSD 11.0, it isn't the vim (vi improved) but I thought that I could ask here because both (unix vi and vim) are similar.

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Doing ^J

Paul-4
On Saturday, 08 April, 2017 at 15:37:45 BST, Christiano wrote:
>:map ^J xyz
>
>The xyz part itself doesnt matter here, my problem is to make the "^J" part.

If the intention is to map control-j, use <c-j>. If the intention is to map the enter key, use <cr>.

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Loading...