Vim Tips Wiki
(Change <tt> to <code>, perhaps also minor tweak.)
 
Line 5: Line 5:
 
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 one<module>
 
File "<string>", line 45, in codepadRun
 
File "<string>", line 45, in codepadRun
 
vim.error
 
vim.error

Latest revision as of 21:52, 8 June 2014

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 one<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[]