Kit*_*Kit 1 vim user-interface compilation
我希望能够使用这个Vim插件向顶部菜单栏添加菜单.

来自https://github.com/vim-scripts/Headlights
我的编译配置是这样的:
./configure --prefix=$HOME/Applications/vim-compiled \
--enable-rubyinterp \
--enable-pythoninterp \
--with-features=huge \
--enable-gui=carbon \
--with-x
Run Code Online (Sandbox Code Playgroud)
但是,当我查看时vim --version,GUI行仍然说:
Huge version without GUI.
Run Code Online (Sandbox Code Playgroud)
我在iTerm中使用Vim.它根本不会修改iTerm的菜单栏.我知道你们中的一些人可能会建议使用MacVim.我可能会考虑稍后,但不是现在,因为我修补了vanilla Vim源(启用breakindent),我还没有完成从头开始修补MacVim源代码的任务.
即使在控制台模式下,您也可以使用菜单.
将以下命令放在.vimrc文件中:
if !has("gui_running")
:source $VIMRUNTIME/menu.vim
:set wildmenu
:set cpoptions-=<
:set wildcharm=<C-Z>
:map <F4> :emenu <C-Z>
endif
Run Code Online (Sandbox Code Playgroud)
按F4将启动菜单.您现在可以使用光标键选择菜单项.点击Enter执行它.打Esc,如果你想取消.这确实需要|+menu|在编译时启用该功能.
欲了解更多详情,请参阅:help console-menu.
| 归档时间: |
|
| 查看次数: |
2028 次 |
| 最近记录: |