Wikia

Vim Tips Wiki

Changes: Script:2298

Edit

Back to page

(adjust Template:ScriptComments to remove id as no longer needed; minor tweaks)
(Change <tt> to <code>, perhaps also minor tweak.)
Line 3: Line 3:
 
==Problem==
 
==Problem==
 
<pre>
 
<pre>
E354: Invalid register name: '+'
+
E354: Invalid register name: '+'
 
Traceback (most recent call last):
 
Traceback (most recent call last):
 
File "<string>", line 1, in <module>
 
File "<string>", line 1, in <module>
Line 14: Line 14:
   
 
<blockquote>
 
<blockquote>
7. Selection and drop registers "*, "+ and "~
+
7. Selection and drop registers "*, "+ and "~
 
Use these registers for storing and retrieving the selected text for the GUI.
 
Use these registers for storing and retrieving the selected text for the GUI.
See |quotestar| and |quoteplus|. When the clipboard is not available or not
+
See |quotestar| and |quoteplus|. When the clipboard is not available or not
working, the unnamed register is used instead. For Unix systems the clipboard
+
working, the unnamed register is used instead. For Unix systems the clipboard
is only available when the |+xterm_clipboard| feature is present. {not in Vi}
+
is only available when the |+xterm_clipboard| feature is present. {not in Vi}
 
</blockquote>
 
</blockquote>
   

Revision as of 09:44, July 14, 2012

Use this page to discuss script 2298 codepad: Post current buffer to codepad.org

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on vim.org).
  • This page may be out of date: check the script's vim.org page above, and its release notes.

Problem

E354: Invalid register name: '+'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "<string>", line 45, in codepadRun
vim.error

:help E354 leads to the registers topic, where you can read about the '+' register:

7. Selection and drop registers "*, "+ and "~ Use these registers for storing and retrieving the selected text for the GUI. See |quotestar| and |quoteplus|. When the clipboard is not available or not working, the unnamed register is used instead. For Unix systems the clipboard is only available when the |+xterm_clipboard| feature is present. {not in Vi}

My guess is that you do not have +xterm_clipboard compiled into your Vim, or at least +clipboard on non-Unix systems. --Fritzophrenic 13:27, October 21, 2010 (UTC)


Commenting out the '+' and '*' lines fixes the problem for me, like in this paste: http://codepad.org/jHAdZuSs ~Neels

Comments

Around Wikia's network

Random Wiki