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'
" 結(jié)束插件列表
call plug#end()
" Vim 基礎(chǔ)配置部分
if !exists("g:vimrc_loaded")
" 設(shè)置顏色主題為 solarized
colorscheme solarized
set background=dark
let g:molokai_original = 1
endif " exists(...)
set so=10 " 光標(biāo)移動(dòng)到倒數(shù)第10行時(shí)開始滾屏
set number " 顯示行號(hào)
syntax on " 打開語法高亮
filetype on " 打開文件類型支持
filetype plugin on " 打開文件類型插件支持
filetype indent on " 打開文件類型縮進(jìn)支持
if has("autocmd") " 打開時(shí)光標(biāo)放在上次退出時(shí)的位置
autocmd BufReadPost *
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
\ exe "normal g'\"" |
\ endif
endif
set completeopt=longest,menu " 自動(dòng)補(bǔ)全菜單
if has('mouse')
set mouse=a
set selectmode=mouse,key
set nomousehide
endif
set autoindent " 自動(dòng)縮進(jìn)
set modeline " 底部的模式行
" 設(shè)置縮進(jìn)寬度為 4 個(gè)空格
set shiftwidth=4
set tabstop=4
set softtabstop=4
set showmatch " 高亮括號(hào)配對(duì)
set matchtime=0
set nobackup " 關(guān)閉備份
set nowritebackup
if has('nvim')
set ttimeout
set ttimeoutlen=0
endif
"在insert模式下能用刪除鍵進(jìn)行刪除
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 " 設(shè)置折疊區(qū)域的寬度
set foldlevel=100
" 用空格鍵來開關(guān)折疊
nnoremap <space> @=((foldclosed(line('.')) < 0) ? 'zc' : 'zo')<CR>
set smartcase " 搜索時(shí),智能大小寫
set autochdir " 打開文件時(shí),自動(dòng) cd 到文件所在目錄
vmap j gj
vmap k gk
nmap j gj
nmap k gk
" Shift-T 開新 Tab
nmap T :tabnew<cr>
" 關(guān)閉兼容模式
set nocompatible
" 基礎(chǔ)配置結(jié)束
" 插件配置部分
" 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'
歡迎選擇我的課程,讓我們一起見證您的進(jìn)步~~
You can put :version
的輸出貼一下,如果insert_expand
的前面是減號(hào)-
, that is, your VIM installation does not support automatic completion, so an error will be reported every time. As shown in the picture below: