<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rneovim.git/test/functional/cmdline, branch v0.4.3</title>
<subtitle>Neovim fork with Rahm's personal hacks.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/'/>
<entry>
<title>cmdline: CTRL-R: Omit trailing &lt;CR&gt;.</title>
<updated>2017-02-18T22:24:35+00:00</updated>
<author>
<name>Justin M. Keyes</name>
<email>justinkz@gmail.com</email>
</author>
<published>2017-02-18T22:15:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=baab49ee89a927f63bfefdb432155a1037afa93a'/>
<id>baab49ee89a927f63bfefdb432155a1037afa93a</id>
<content type='text'>
The "technically correct" interpretation is to execute the first line
that is seen (and this is what happens on middle-click paste in Vim).
^M is only intended to "defuse" the newline, so the user can review it.

The parent commit changed the behavior to insert &lt;Space&gt; between lines,
but that's a higher-risk change: it is arguably possible that some user
*wants* the literal ^M chars when e.g. assigning to a register:
    :let @a='&lt;C-R&gt;b'

To avoid that risk, keep the old behavior and only omit the last ^M.
This makes `yy:&lt;C-R&gt;0` nicer at no cost.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The "technically correct" interpretation is to execute the first line
that is seen (and this is what happens on middle-click paste in Vim).
^M is only intended to "defuse" the newline, so the user can review it.

The parent commit changed the behavior to insert &lt;Space&gt; between lines,
but that's a higher-risk change: it is arguably possible that some user
*wants* the literal ^M chars when e.g. assigning to a register:
    :let @a='&lt;C-R&gt;b'

To avoid that risk, keep the old behavior and only omit the last ^M.
This makes `yy:&lt;C-R&gt;0` nicer at no cost.
</pre>
</div>
</content>
</entry>
<entry>
<title>cmdline: CTRL-R: &lt;Space&gt; instead of CR between lines.</title>
<updated>2017-02-18T13:49:05+00:00</updated>
<author>
<name>Justin M. Keyes</name>
<email>justinkz@gmail.com</email>
</author>
<published>2017-02-18T01:39:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=308ccb6f5e40ba1dbe4abfebc9df3399d7f17504'/>
<id>308ccb6f5e40ba1dbe4abfebc9df3399d7f17504</id>
<content type='text'>
^M isn't any more "correct" than space: the "technically correct"
interpretation is to execute the first line that is seen (and this is
what happens on middle-click paste in Vim). ^M is only intended to
defuse the newline, so that the user can review the command. We can do
that with a space instead, and then the command can be executed without
having to fix it up first.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
^M isn't any more "correct" than space: the "technically correct"
interpretation is to execute the first line that is seen (and this is
what happens on middle-click paste in Vim). ^M is only intended to
defuse the newline, so that the user can review the command. We can do
that with a space instead, and then the command can be executed without
having to fix it up first.
</pre>
</div>
</content>
</entry>
</feed>
