简体   繁体   English

在 Ubuntu 上使用 'vi' 出现错误“E353:没有注册”

[英]Error "E353: Nothing in register" using 'vi' on Ubuntu

I am trying to install OpenDocMan in a new Ubuntu 15.04 (Vivid Vervet) that I have set up.我正在尝试在我设置的新Ubuntu 15.04 (Vivid Vervet)中安装OpenDocMan

I followed steps in Setup Document Management System Using OpenDocMan On CentOS 6.5 .我按照在 CentOS 6.5 上使用 OpenDocMan 设置文档管理系统中的步骤进行操作。

Everything was great only till this step.一切都很好,直到这一步。 It opens a new window and when I paste the code (with my database information) it gives me the below error它打开一个新窗口,当我粘贴代码(带有我的数据库信息)时,它给了我以下错误

Create a config.php file with contents as given in the above dialogue box.使用上面对话框中给出的内容创建一个config.php文件。

vi /var/www/html/opendocman/config.php

Copy the text given in the above dialog box.复制上面对话框中给出的文本。

When I do this, I get this error (including the quote at the end):当我这样做时,我收到此错误(包括最后的报价):

E353: Nothing in register " E353: 寄存器中没有任何内容“

I googled and followed instructions on how to solve this, but it is still not working.我用谷歌搜索并按照有关如何解决此问题的说明进行操作,但它仍然无法正常工作。

I am not sure where this config.php file should be.我不确定这个config.php文件应该在哪里。 Even when I follow the path in BlueFIsh, I can't see or make a file.即使我遵循 BlueFIsh 中的路径,我也无法看到或创建文件。

How can I fix this?我怎样才能解决这个问题?

I don't have a domain for this yet, only the IP address.我还没有用于此的域,只有 IP 地址。

I am new to Ubuntu.我是 Ubuntu 的新手。

If you get this error in Vim while copying text from one file to another on your laptop, it's probably because ~/.viminfo is owned by root (this can happen if you used Vim in sudo mode the first time you used it after installing it).如果您在笔记本电脑上将文本从一个文件复制到另一个文件时在 Vim 中遇到此错误,可能是因为~/.viminfo归 root 所有(如果您在安装 Vim 后第一次使用它时在 sudo 模式下使用它,则会发生这种情况)。 If this is the case (check ls -la ~ ), then you could try:如果是这种情况(检查ls -la ~ ),那么您可以尝试:

sudo chown `whoami`.`whoami` ~/.viminfo

But in your case, it sounds like (on your laptop) you have a browser and a terminal application open, and the terminal application has an SSH connection to a server, on which you have a Vim editor open.但是在您的情况下,听起来(在您的笔记本电脑上)您打开了浏览器和终端应用程序,并且终端应用程序与服务器建立了 SSH 连接,您在该服务器上打开了 Vim 编辑器。 If you try to tell Vim (running on the server) to paste something, it will (obviously) not have access to your laptop's clipboard or yank buffers.如果您尝试告诉 Vim(在服务器上运行)粘贴某些内容,它(显然)将无法访问您笔记本电脑的剪贴板或猛拉缓冲区。 You can, however, put Vim into paste mode with :set paste followed by i inside the SSH session (or just i for normal input mode), and then paste the text into the terminal window (in the Ubuntu Terminal application, use Ctrl + Shift + V instead of the usual Ctrl + V ).但是,您可以在 SSH 会话中使用:set paste后跟i将 Vim 置于粘贴模式(或仅i用于正常输入模式),然后将文本粘贴到终端窗口中(在 Ubuntu 终端应用程序中,使用Ctrl + Shift + V而不是通常的Ctrl + V )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM