Nvim :help 页面,生成 于 源文件,使用 tree-sitter-vimdoc 解析器。
master 分支)用于积极地准备新功能和更改。它通常是稳定的,但偶尔会破坏你的工作流程。我们依赖 HEAD 用户来报告自动化测试没有捕获的“盲点”。if_lua 接口不受支持。set termguicolors
�[2 q)TERM=xterm-256color)。:set guicursor=
" Workaround some broken plugins which set guicursor indiscriminately.
:autocmd OptionSet guicursor noautocmd set guicursor=$TERM 值。man nvim 中有关 NVIM_TUI_ENABLE_CURSOR_SHAPE 的说明。:set guicursor=
" Workaround some broken plugins which set guicursor indiscriminately.
:autocmd OptionSet guicursor noautocmd set guicursor=blinkon0。参见 'guicursor'.:set termguicolors
:hi Cursor guifg=green guibg=green
:hi Cursor2 guifg=red guibg=red
:set guicursor=n-v-c:block-Cursor/lCursor,i-ci-ve:ver25-Cursor2/lCursor2,r-cr:hor20,o:hor50
au VimEnter,VimResume * set guicursor=n-v-c:block,i-ci-ve:ver25,r-cr:hor20,o:hor50
\,a:blinkwait700-blinkoff400-blinkon250-Cursor/lCursor
\,sm:block-blinkwait175-blinkoff150-blinkon175
au VimLeave,VimSuspend * set guicursor=a:block-blinkon0
_ 出现和消失非常快,并且你在 EndOfBuffer 和 Normal 中设置了 ctermbg,请尝试将它们设置为 NONEhi EndOfBuffer ctermbg=NONE ctermfg=200 cterm=NONE
hi Normal ctermbg=NONE ctermfg=200 cterm=NONE
clipboard=autoselect 尚未实现 https://github.com/neovim/neovim/issues/2325。你可能会发现这个解决方法有用vnoremap <LeftRelease> "*ygv
vnoremap <2-LeftRelease> "*ygv
CTRL-H 映射不起作用infocmp $TERM | sed 's/kbs=^[hH]/kbs=\\177/' > $TERM.ti
tic $TERM.ti
*.ti 文件)。<HOME> 或其他一些“特殊”键不起作用$TERM 应该是 screen-256color(而不是 xterm-256color!)TERM=xterm-256color。neovim 模块已更名为 pynvim(很久以前了)。pynvim 模块 https://pypi.ac.cn/project/pynvim/,,你必须将 g:python3_host_prog 设置为 virtualenv 的解释器路径。pynvim Python 模块python -m pip install setuptools
python -m pip install --upgrade pynvim
python3 -m pip install --upgrade pynvim:echo &runtimepath 是否包含 $VIMRUNTIME 路径。:call health#check()
:verbose func health#check:help nvim 显示 E149: Sorry, no help for nvim,则会出现这种情况。:echo $VIM 和 :echo $VIMRUNTIME。这应该给出类似于 /usr/share/nvim 以及 /usr/share/nvim/runtime 的内容。:checkhealth nvim 应该报告以下“构建类型”之一Build type: RelWithDebInfo Build type: MinSizeRel Build type: Release
Build type: Debug 并且你正在从源代码构建 Nvim,请参见 https://github.com/neovim/neovim/blob/master/BUILD.md.TERM=xterm-256color nvim。如果颜色显示正确,那么在你的用户配置文件(通常是 ~/.profile)中导出 TERM 的该值export TERM=xterm-256color
tmux,请将此添加到你的 tmux.conf 中set -g default-terminal "tmux-256color"
screen,配置你的 .screenrc <https://wiki.archlinux.org.cn/index.php/GNU_Screen#Use_256_colors>term screen-256color
t_Co 和其他 t_xx 终端代码。locale | grep -E '(LANG|LC_CTYPE|LC_ALL)=(.*\.)?(UTF|utf)-?8'
tmux / screen 中的一个常见问题 https://www.google.com/?q=tmux%20vim%20escape%20delay(另见 https://github.com/tmux/tmux/issues/131#issuecomment-145853211)。相应的超时需要调整为较低的值(10-20 毫秒)。.tmux.conf:
set -g escape-time 10 # Or for tmux >= 2.6 set -sg escape-time 10
.screenrc:
maptimeout 10
vim -N -u NONE),但如果你在 ESC 后快速按下键,则 Vim 将 ESC 解释为 ESC 而不是 ALT(META)。除非你仔细观察光标,否则你不会注意到延迟。权衡是 Vim 不会理解 ALT(META)键码,因此例如 nnoremap <M-a> 不会起作用。ALT(META)键码始终在 Nvim 中起作用。另见 Vim 中的 :help xterm-cursor-keys。ESC 是鼠标序列的一部分,并且无论 maptimeout 如何,它都会无限期地等待序列的其余部分。在 screen 中修复它之前,除了双击 escape 之外,没有已知的解决方法,这会导致将单个 escape 传递到 Nvim。shortmess+=F。Vim 在 set shortmes+=F 时表现相同。有计划要改进这一点,但在 meantime,作为解决方法,请使用 set shortmess-=F 或使用 unsilent,如下所示。unsilent let var = inputlist(['1. item1', '2. item2'])
autocmd BufNewFile * unsilent echomsg 'The autocmd has been fired.'
let g:clipboard = { 'name' : ... }
if exists('g:loaded_clipboard_provider')
unlet g:loaded_clipboard_provider
runtime autoload/provider/clipboard.vim
endif
function! s:clipboard_changed(...) abort
if exists('g:loaded_clipboard_provider')
unlet g:loaded_clipboard_provider
endif
runtime autoload/provider/clipboard.vim
endfunction
if !exists('s:loaded")
call dictwatcheradd(g:, 'clipboard', function('s:clipboard_changed'))
endif
let s:loaded = v:true
make distclean && make 来排除过时的构建环境导致故障。local.mk 后,您可能需要运行 rm -r build && make。configure_file 配置文件问题
make,然后以非特权用户运行 make,就会发生这种情况。要解决此问题,请运行 rm -rf build 并重试。CMAKE_INSTALL_PREFIX,则默认值为 /usr/local/share/nvim)。rm -r /usr/local/share/nvim