<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="/horde/whups/themes/feed-rss.xsl" type="text/xsl"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <title>i_CTRL-X_CTRL-N deletes the line</title>
  <pubDate>Sat, 05 Sep 2026 03:36:56 +0200</pubDate>
  <link>http://www.polarhome.com/horde/whups/ticket/?id=19</link>
  <atom:link rel="self" type="application/rss+xml" title="i_CTRL-X_CTRL-N deletes the line" href="http://www.polarhome.com/horde/whups/ticket/rss.php?id=19" />
  <description>i_CTRL-X_CTRL-N deletes the line</description>

  
  
  <item>
   <title>In insert mode, Ctrl-X,N is used to autocomplete based on wo</title>
   <description>In insert mode, Ctrl-X,N is used to autocomplete based on words in the current
buffer.

:he i_CTRL-X_CTRL-N

On VMS, in certain cases, pressing Ctrl-X deletes the current line (similar to
i_Ctrl-U).

To reproduce:
1) create a read-only file
    $ create a.txt
    [ctrl-z to end input]
    $ set file/prot=o:r a.txt
2) edit with vim - it is opened as [RO]
    $ vim a.txt
3) enter insert mode
    i
   vim shows a warning message (W10: Warning: Changing a readonly file), and
   then displays [+][RO]
4) type something; press Ctrl-X (the first part of Ctrl-X,N)
    hello&lt;C-X&gt;

Result:
Upon pressing Ctrl-X, vim deletes the whole line (the &quot;hello&quot; word).

Expected result (observable on Windows):
Upon pressing Ctrl-X, vim waits until N (to complete Ctrl-X,N), then offers
suggestions.

===================
Other notes:

I also got this behaviour in a writable file, but a read-only, edited file (with
[+][RO] had to be loaded in another buffer (or window?).

I only managed to get this behaviour shortly after editing the read-only file.
(Of course, this observation may be imprecise. It certainly seems strange.)
</description>
   <pubDate>Wed, 08 Dec 2010 14:13:41 +0100</pubDate>
   <link>http://www.polarhome.com/horde/whups/ticket/?id=19#t40</link>
  </item>
  

 </channel>
</rss>
