[英]vim 8.0 e353: nothing in register "
I'm using vim version 8.0.1453 on Ubuntu 18.04 Server and getting error e353: nothing in register " always when I try to paste yanked text after closing and reopening the file. Yanking and pasting inside the same file works as long as I don't close the file. After reopening the file I tried to run :reg but it returns an empty list of registers.我在 Ubuntu 18.04 服务器上使用 vim 版本 8.0.1453 并收到错误e353: nothing in register "总是当我在关闭并重新打开文件后尝试粘贴被拉取的文本时。只要我不这样做,在同一个文件中拉取和粘贴就可以工作't close the file. 重新打开文件后,我尝试运行 :reg 但它返回一个空的寄存器列表。
I'm using vim inside tmux and I have another system with the exact same vim and tmux versions and everything works.我在 tmux 中使用 vim,我有另一个系统,其 vim 和 tmux 版本完全相同,一切正常。 I have deleted my .vimrc and .vim folder to isolate the problem.
我已经删除了我的 .vimrc 和 .vim 文件夹来隔离问题。
I have already tried all suggestions that I could find using Google, but nothing seems to help.我已经尝试了使用 Google 可以找到的所有建议,但似乎没有任何帮助。 I have uninstalled all vim versions and reinstalled vim from the ubuntu repository.
我已经卸载了所有 vim 版本并从 ubuntu 存储库重新安装了 vim。 I also tried and it turns out that this works in neovim but not regular vim.
我也尝试过,结果证明这在 Neovim 中有效,但在常规 vim 中无效。
Check that your ~/.viminfo
file is properly configured and have the right permissions.检查您的
~/.viminfo
文件是否已正确配置并具有正确的权限。
That's the file where Vim saves registers at the end of an editing session, so if it can't write to it, it won't be able to restore the registers when starting a new instance.这是 Vim 在编辑会话结束时保存寄存器的文件,所以如果它不能写入它,它就无法在启动新实例时恢复寄存器。
See also :set viminfo?
另见
:set viminfo?
and :help 'viminfo'
for the setting on what gets saved and how much gets saved to the ~/.viminfo
file, there are limits there that could be causing an issue similar to the one you described.和
:help 'viminfo'
用于设置保存的内容以及保存到~/.viminfo
文件的数量,那里有一些限制可能会导致与您描述的问题类似的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.