Re: use 'bind ^J enter main' instead

Benno Schulenberg <[email protected]>
Newsgroups gmane.editors.nano.general
Message-ID <1495049566.3681916.980012664.52D871DB@webmail.messagingengine.com>
Hello Yves,

On Wed, May 17, 2017, at 21:10, Yves Goergen wrote:
> The unbind config seems to help a bit, but doesn't give me the desired 
> result. I've opened the same file on the server and pasted multi-line 
> text from the same local file into it. No justify was triggered, no 
> unrelated text was inadvertently modified. But the line break wasn't 
> pasted as well. The two lines I copied were pasted as one, with no space 
> in between. Line breaks seem to be lost in nano.

If linebreaks are lost, then tell nano that ^Js are linebreaks.
Instead of the "unbind ^J main", put this line in your nanorc:

  bind ^J Enter main

See also this item in the FAQ:

  https://nano-editor.org/dist/latest/faq.html#4.8b

> Can that be made working again?

^Js never caused Enters in nano.  If things changed for you,
it must be because your setup changed somehow.

Benno

-- 
http://www.fastmail.com - Same, same, but different...
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.