Neovim prompts that there is no matching automatic command
天蓬老师
天蓬老师 2017-05-16 16:37:22
0
1
1015

After installing the vim airline plug-in, every time I open a file, I will be prompted that there is no matching automatic command.
Can you turn off this prompt?

The following is my init.vim configuration file:

call plug#begin('~/.config/nvim/plugged') " vim-plug 初始化

"""
" 插件列表
"""

Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'

" 结束插件列表
call plug#end()


" Vim 基础配置部分

if !exists("g:vimrc_loaded")
    " 设置颜色主题为 solarized
    colorscheme solarized
    set background=dark
    let g:molokai_original = 1
endif " exists(...)

set so=10           " 光标移动到倒数第10行时开始滚屏
set number          " 显示行号
syntax on           " 打开语法高亮
filetype on         " 打开文件类型支持
filetype plugin on  " 打开文件类型插件支持
filetype indent on  " 打开文件类型缩进支持

if has("autocmd")   " 打开时光标放在上次退出时的位置
    autocmd BufReadPost *
        \ if line("'\"") > 0 && line ("'\"") <= line("$") |
        \   exe "normal g'\"" |
        \ endif
endif

set completeopt=longest,menu " 自动补全菜单

if has('mouse')
    set mouse=a
    set selectmode=mouse,key
    set nomousehide
endif

set autoindent    " 自动缩进
set modeline      " 底部的模式行

" 设置缩进宽度为 4 个空格
set shiftwidth=4 
set tabstop=4
set softtabstop=4

set showmatch     " 高亮括号配对
set matchtime=0
set nobackup      " 关闭备份
set nowritebackup

if has('nvim')
   set ttimeout
   set ttimeoutlen=0
endif

"在insert模式下能用删除键进行删除
set backspace=indent,eol,start

" 文件编码
set fenc=utf-8
set fencs=utf-8,gbk,gb18030,gb2312,cp936,usc-bom,euc-jp
set enc=utf-8

"语法折叠
set foldmethod=syntax
set foldcolumn=0  " 设置折叠区域的宽度
set foldlevel=100
" 用空格键来开关折叠
nnoremap <space> @=((foldclosed(line('.')) < 0) ? 'zc' : 'zo')<CR>

set smartcase   " 搜索时,智能大小写
set autochdir   " 打开文件时,自动 cd 到文件所在目录

vmap j gj
vmap k gk
nmap j gj
nmap k gk

" Shift-T 开新 Tab
nmap T :tabnew<cr>

" 关闭兼容模式
set nocompatible

" 基础配置结束

" 插件配置部分

" airline配置
" 配置airline使用powerfonts
let g:airline_powerline_fonts = 1
" enable tabline
let g:airline#extensions#tabline#enabled = 1
" set left separator
let g:airline#extensions#tabline#left_sep = ' '
" set left separator which are not editting
let g:airline#extensions#tabline#left_alt_sep = '|'
" show buffer number
let g:airline#extensions#tabline#buffer_nr_show = 1
" set airline theme to solarized dark
let g:airline_theme='solarized'
天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(1)
仅有的幸福

You can put :version的输出贴一下,如果insert_expand的前面是减号-, that is, your VIM installation does not support automatic completion, so an error will be reported every time. As shown in the picture below:

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template