简体   繁体   English

vim 8.0 e353:寄存器中没有任何内容“

[英]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.

相关问题 在 Ubuntu 上使用 'vi' 出现错误“E353:没有注册” - Error "E353: Nothing in register" using 'vi' on Ubuntu 当没有.vimrc时,Vim 8.0状态行背景变色 - Vim 8.0 status line background discoloration when no .vimrc is present Vim 8.0:无法在Ubuntu 18.04 LTS上禁用自动缩进 - Vim 8.0: Can't disable autoindent on Ubuntu 18.04 LTS E185:找不到配色方案'solarized.vim' - E185: Cannot find color scheme 'solarized.vim' Vim错误E492:不是编辑器命令:dd - Vim error E492: Not an editor command: dd E492在vim的clang_complete安装期间 - E492 during clang_complete installation for vim sudo vim crontab与sudo crontab e-何时使用 - sudo vim crontab vs sudo crontab e - when to use Ubuntu-从软件狗获取GPS坐标(BU-353) - Ubuntu - getting GPS coordinates from dongle (bu-353) 如何在不自行更改布局的情况下在 VSCode + Vim + Ubuntu 中使用其他语言(例如俄语)? - How to use other languages (e. g. Russian) in VSCode + Vim + Ubuntu without changing layout by self? 无法在 ubuntu 上安装 php 8.0,E: 存储库“https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy Release”没有 Release 文件 - Cannot install php 8.0 on ubuntu, E: The repository 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy Release' does not have a Release file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM