当前位置: 首页 > 知识库问答 >
问题:

在OSX上不启动密钥绑定

苏波涛
2023-03-14

我有一个在NeoVim中没有按预期发射的关键命令。下面是我neovim配置的摘录:

nnoremap <C-j> :wincmd j<cr>
nnoremap <C-k> :wincmd k<cr>
nnoremap <C-h> :wincmd h<cr>
nnoremap <C-l> :wincmd l<cr>

来自:nmap的适用条目显示绑定尚未被覆盖。

n  <C-H>       * :wincmd h<CR>
n  <NL>        * :wincmd j<CR>
n  <C-K>       * :wincmd k<CR>
n  <C-L>       * :wincmd l<CR>

但按

这个绑定从来没有给我在Vim上带来任何麻烦,尽管我在转换过程中更改了一些插件。这里是完整的vimrc。

NeoVim版本信息

NVIM 0.1.1 (compiled Dec 26 2015 18:48:21)
Build type: RelWithDebInfo
Compilation: /usr/local/Library/ENV/4.3/clang -Wconversion -O2 -g -DDISABLE_LOG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -DHAVE_CONFIG_H -I/tmp/neovim20151226-9038-13s73ki/neovim-0.1.1/build/config -I/tmp/neovim20151226-9038-13s73ki/neovim-0.1.1/src -I/tmp/neovim20151226-9038-13s73ki/neovim-0.1.1/deps-build/usr/include -I/tmp/neovim20151226-9038-13s73ki/neovim-0.1.1/deps-build/usr/include -I/tmp/neovim20151226-9038-13s73ki/neovim-0.1.1/deps-build/usr/include/luajit-2.0 -I/tmp/neovim20151226-9038-13s73ki/neovim-0.1.1/deps-build/usr/include -I/tmp/neovim20151226-9038-13s73ki/neovim-0.1.1/deps-build/usr/include -I/tmp/neovim20151226-9038-13s73ki/neovim-0.1.1/deps-build/usr/include -I/tmp/neovim20151226-9038-13s73ki/neovim-0.1.1/deps-build/usr/include -I/usr/local/opt/gettext/include -I/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include -I/tmp/neovim20151226-9038-13s73ki/neovim-0.1.1/build/src/nvim/auto -I/tmp/neovim20151226-9038-13s73ki/neovim-0.1.1/build/include
Compiled by icook@Isaacs-MacBook-Pro.local

Optional features included (+) or not (-): +acl   +iconv    +jemalloc
For differences from Vim, see :help vim-differences

system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/local/Cellar/neovim/0.1.1/share/nvim"

附言:我使用的是iTerm2,但它似乎在普通OSX终端中做同样的事情。


共有1个答案

姜钧
2023-03-14

原来是NeoVim的一个漏洞,还没有解决。

https://github.com/neovim/neovim/issues/2048

 类似资料:
  • null 我得到的安装说明中有一部分是这样说的: 要在引导时启动mysqld,必须将support-files/mysql.server复制到系统的正确位置。 我在上找到了MySQL.server,我还可以通过使用所需的函数运行来启动、停止和检查MySQL的状态。然而,我不知道“正确的地方”是在我的系统上的什么地方,就像说明所说的那样。 我应该注意到,以下命令之一在引导后启动MySQL:

  • 问题内容: 由于我已经为Eclipse下载了全新的安装程序,因此无法再启动它。错误消息显示“发生了错误,请参阅日志文件/Applications/eclipse/configuration/1323191649568.log。” 在重新安装之前,我已经多次删除了有关Eclipse Java Runtime的所有文件和文件夹。并且,命令./eclipse -clean给我同样的错误。 任何想法? 这

  • 我从http://www.oracle.com/technetwork/java/javase/downloads/index.html安装了JDK 8 感谢任何帮助。

  • 问题内容: 一段时间以来,我们的Java应用程序已预先与Windows上的JRE捆绑在一起。我们有一个用C语言编写的启动器小应用程序,它使该应用程序使用我们预先捆绑的JRE。现在,随着苹果公司努力逐步淘汰Java,我们已经决定谨慎对待OSX上的类似产品。在OSX上使用预捆绑的JRE的最佳方法是什么? 问题答案: 即使我觉得这不是一个好主意(请参阅下文),您也可以将OpenJDK之类的JVM捆绑在一

  • Ubuntu 16.04.1 LTS Hadoop 3.3.1 当我运行start dfs时。上海, hadoop@ubuntu:/hadoop/sbin$启动dfs。在[ubuntu]上启动namenodes(名称节点):警告:将“ubuntu”(ECDSA)永久添加到已知主机列表中 启动datanodes localhost:警告:将“localhost”(ECDSA)永久添加到已知主机列表中