缓冲器在vim中不工作

缓冲器在vim中不工作,vim,runtime-error,buffer,vi,Vim,Runtime Error,Buffer,Vi,由于某种原因,我的缓冲区不工作。当我点击b时,它说 不是编辑器命令:缓冲区 这是我的.vimrc文件: set nocompatible " required filetype off " required set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() " required Plugin 'VundleVim/Vundle.vim' " General Plugin '

由于某种原因,我的缓冲区不工作。当我点击b时,它说

不是编辑器命令:缓冲区

这是我的.vimrc文件:

set nocompatible              " required
filetype off                  " required

set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

" required
Plugin 'VundleVim/Vundle.vim'

" General
Plugin 'scrooloose/nerdtree'
Plugin 'kien/ctrlp.vim'
Plugin 'scrooloose/syntastic'
Plugin 'tpope/vim-commentary'

" User Interface
Plugin 'altercation/vim-colors-solarized'
Plugin 'JarrodCTaylor/vim-256-color-schemes'
Plugin 'JarrodCTaylor/vim-reflection'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'bling/vim-airline'

" Programming
Plugin 'mattn/emmet-vim'
Plugin 'tpope/vim-surround'
Plugin 'leafgarland/typescript-vim'

" Languages
Plugin 'pangloss/vim-javascript'
Plugin 'davidhalter/jedi-vim'


" all plugins must be above this line!!

call vundle#end()            " required
filetype  plugin indent on   " required

" non-plugin stuff after this line!!

" Map leader to ,
let mapleader=','

set t_Co=256
syntax on

set nobackup                           " Don't constantly write backup files
set noswapfile                         " Ain't nobody got time for swap files
set noerrorbells                       " Don't beep
set nowrap                             " Do not wrap lines
set shiftwidth=4                       " Number of spaces to use for each step of indent
set showcmd                            " Display incomplete commands in the bottom line of the screen
set tabstop=4                          " Number of spaces that a <Tab> counts for
set undolevels=1000                    " Never can be too careful when it comes to undoing
set hidden                             " Don't unload the buffer when we switch between them. Saves undo history
set visualbell                         " Visual bell instead of beeping
set wildmenu                           " Command-line completion in an enhanced mode
set shell=bash                         " Required to let zsh know how to run things on the command line
set ttimeoutlen=50                     " Fix delay when escaping from insert with Esc
set noshowmode                         " Hide the default mode text (e.g. -- INSERT -- below the statusline)
set showbreak=↪\
set synmaxcol=256
set scrolloff=3
set clipboard=unnamed
au BufNewFile,BufRead *.json set ft=javascript

" Status line / visual configuration

syntax enable
set t_Co=256
set t_ut=
hi clear
hi String ctermfg=81 ctermbg=NONE cterm=NONE guifg=#5fd7ff guibg=NONE gui=NONE
hi CursorLine cterm=NONE ctermbg=darkred ctermfg=white

set laststatus=2                                    " Make the second to last line of vim our status line
let g:airline_theme='understated'                   " Use the custom theme I wrote
let g:airline_left_sep=''                           " No separator as they seem to look funky
let g:airline_right_sep=''                          " No separator as they seem to look funky
let g:airline#extensions#branch#enabled = 0         " Do not show the git branch in the status line
let g:airline#extensions#syntastic#enabled = 1      " Do show syntastic warnings in the status line
let g:airline#extensions#tabline#show_buffers = 0   " Do not list buffers in the status line
let g:airline_section_x = ''                        " Do not list the filetype or virtualenv in the status line
let g:airline_section_y = '[R%04l,C%04v] [LEN=%L]'  " Replace file encoding and file format info with file position
let g:airline_section_z = ''                        " Do not show the default file position info
let g:airline#extensions#virtualenv#enabled = 0
autocmd BufReadPost quickfix nnoremap <buffer> <CR> :.cc<CR>
autocmd BufReadPost quickfix nnoremap <buffer> o :.cc<CR>
nnoremap <Leader>W :%s/\s\+$//<CR>:let @/=''<CR>
let g:syntastic_check_on_open=1                   " check for errors when file is loaded
let g:syntastic_loc_list_height=5                 " the height of the error list defaults to 10
let g:syntastic_python_checkers = ['flake8']      " sets flake8 as the default for checking python files
let g:syntastic_javascript_checkers = ['jshint']  " sets jshint as our javascript linter
let g:syntastic_filetype_map = { 'handlebars.html': 'handlebars' }
let g:syntastic_mode_map={ 'mode': 'active',
                     \ 'active_filetypes': [],
                     \ 'passive_filetypes': ['html', 'handlebars'] }

set tags=./.ctags,.ctags;
let g:NERDTreeMapJumpNextSibling = ''
let g:NERDTreeMapJumpPrevSibling = ''
let g:gundo_preview_bottom = 1
let g:markdown_fold_style = 'nested'
let g:markdown_fenced_languages = ['python', 'sh', 'vim', 'javascript', 'html', 'css', 'c', 'sql']
let g:indent_guides_start_level = 2
let g:indent_guides_guide_size = 1
let g:indent_guides_exclude_filetypes = ['help', 'nerdtree']
let g:indent_guides_auto_colors = 0
autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd  ctermbg=238
autocmd VimEnter,Colorscheme * :hi IndentGuidesEven ctermbg=249

function! s:DeleteBuffer()
    let line = getline('.')
    let bufid = line =~ '\[\d\+\*No Name\]$' ? str2nr(matchstr(line, '\d\+'))
        \ : fnamemodify(line[2:], ':p')
    exec "bd" bufid
    exec "norm \<F5>"
endfunction
" NERDTree configuration
let g:NERDTreeChDirMode=2
let g:NERDTreeIgnore=['\.rbc$', '\~$', '\.pyc$', '\.db$', '\.sqlite$', '__pycache__']
let g:NERDTreeSortOrder=['^__\.py$', '\/$', '*', '\.swp$', '\.bak$', '\~$']
let g:NERDTreeShowBookmarks=1
let g:nerdtree_tabs_focus_on_files=1
let g:NERDTreeMapOpenInTabSilent = '<RightMouse>'
let g:NERDTreeWinSize = 50
set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*.pyc,*.db,*.sqlite
nnoremap <silent> <F2> :NERDTreeFind<CR>
nmap <F3> :NERDTreeToggle<CR>

" buffer configuration
nnoremap <silent> <leader>b :Buffers<CR>
" close buffer

nnoremap <leader>c :bd<CR>
set nocompatible”为必填项
“文件类型关闭”是必需的
设置rtp+=~/.vim/bundle/Vundle.vim
调用vundle#begin()
“必须
插件“VundleVim/Vundle.vim”
“将军
插件'scroolose/nerdtree'
插件'kien/ctrlp.vim'
插件“Scroolose/syntastic”
插件“tpope/vim注释”
“用户界面
插件“Interchange/vim颜色日光浴”
插件“JarrodCTaylor/vim-256-color-schemes”
插件“JarrodCTaylor/vim反射”
插件“vim航空公司/vim航空公司主题”
插件“bling/vim airline”
“编程
插件“mattn/emmet vim”
插件“tpope/vim环绕”
插件'leafgarland/typescript vim'
“语言
插件“pangloss/vim javascript”
插件“大卫哈特/绝地维姆”
“所有插件都必须在这条线以上!!
需要调用vundle#end()
“必需”上的文件类型插件缩进
“这一行之后的非插件内容!!
“将领导者映射到,
设mapleader=','
设置t_Co=256
语法高亮
set nobackup“不要经常写入备份文件
设置noswapfile“没有人有时间交换文件
设置noerrorbells“不发出哔哔声
set nowrap“不换行
设置shiftwidth=4“缩进每一步要使用的空格数
set showcmd“在屏幕底部显示不完整的命令
设置tabstop=4“a计数的空间数
设置撤消级别=1000“撤消时,再小心也不为过
设置隐藏“在缓冲区之间切换时,不要卸载缓冲区。保存撤消历史记录
设置visualbell“可视铃声,而不是蜂鸣声
在增强模式下设置wildmenu“命令行完成”
设置shell=bash”是让zsh知道如何在命令行上运行东西所必需的
设置ttimeoutlen=50“使用Esc从insert退出时的修复延迟
set noshowmode“隐藏默认模式文本(例如--INSERT--状态行下方)
布景=↪\
设置synmaxcol=256
设置scrolloff=3
设置剪贴板=未命名
au BufNewFile,BufRead*.json set ft=javascript
“状态行/可视配置
语法启用
设置t_Co=256
设置输出=
你好,明白了
hi字符串ctermfg=81 ctermbg=NONE cterm=NONE guifg=#5fd7ff guibg=NONE guibg=NONE=NONE
hi-CursorLine字符M=NONE字符MBG=darkred字符MFG=white
设置laststatus=2“将vim的第二行至最后一行设置为我们的状态行
让g:airline_theme='substated'”使用我写的自定义主题
让g:airline_left_sep=''没有分隔符,因为它们看起来很时髦
让g:airline\u right\u sep=''没有分隔符,因为它们看起来很时髦
设g:airline#extensions#branch#enabled=0“不在状态行中显示git分支
让g:airline#extensions#syntastic#enabled=1“在状态行中显示syntastic警告
设g:airline#extensions#tabline#show#u buffers=0“不在状态行中列出缓冲区
让g:airline\u section\u x=''不要在状态行中列出文件类型或虚拟机
让g:airline_section_y='[R%04l,C%04v][LEN=%L]'用文件位置替换文件编码和文件格式信息
让g:airline_section_z=''不显示默认文件位置信息
设g:airline#extensions#virtualenv#enabled=0
autocmd BufReadPost快速修复nnoremap:.cc
autocmd BufReadPost快速修复nnoremap o:.cc
nnoremap W:%s/\s\+$/:let@/=“”
让g:syntastic\u check\u on\u open=1“在加载文件时检查错误
设g:syntastic_loc_list_height=5“错误列表的高度默认为10
让g:syntastic_python_checkers=['flake8']”将flake8设置为检查python文件的默认值
让g:syntastic_javascript_checkers=['jshint']”将jshint设置为我们的javascript linter
设g:syntastic_filetype_map={'handlebar.html':'handlebar'}
设g:syntastic_mode_map={'mode':'active',
\“活动文件类型”:[],
\“被动_文件类型”:['html','Handlebar']}
设置标记=../.ctags、.ctags;
设g:nerdtreemapumpnextsibling=''
设g:nerdtreemappjumpprevisibling=''
设g:gundo\u preview\u bottom=1
设g:markdown\u fold\u style='nested'
设g:markdown_fenced_languages=['python','sh','vim','javascript','html','css','c','sql']
设g:indent\u guides\u start\u level=2
设g:indent\u guide\u guide\u size=1
让g:indent\u guides\u exclude\u filetypes=['help','nerdtree']
设g:indent\u guides\u auto\u colors=0
autocmd VIMCENTER,颜色方案*:hi INDENTGUIDE SODD ctermbg=238
autocmd VIMCENTER,颜色方案*:hi INDENTGmbG=249
函数!s:DeleteBuffer()
let line=getline('.'))
让bufid=line=~'\[\d\+\*无名称\]$'?str2nr(matchstr(行'\d\+'))
\:fnamemodify(第[2:],':p'行)
执行“bd”bufid
执行“标准”
端功能
“NERDTree配置
设g:NERDTreeChDirMode=2
设g:NERDTreeIgnore=['\.rbc$','\~$','\.pyc$','\.db$','\.sqlite$','\.pycache']
设g:NERDTreeSortOrder=['^\\.py$','\/$,'*','\.swp$','\.bak$','\~$']
设g:NERDTreeShowBookmarks=1
让g:nerdtree\u tabs\u focus\u on\u files=1
设g:nerdtreemapentinabsilent=''
设g:nerdtrewinsize=50
设置wildignore+=*/tmp/*,*.so、*.swp、*.zip、*.pyc、*.db、*.sqlite
nnoremap:NERDTreeFind
nmap:nerdtreethoggle
“缓冲区配置
nnoremap b:缓冲区
“关闭缓冲区
nnoremap c:bd
有人能告诉我我错过了什么吗?我也将接受升级我的vimrc文件的提示,所以请随意给出任何提示:)但我主要想解决这个问题。所以,请告诉我,我应该删除或添加什么才能使它再次工作。它以前工作过。这真的很像南苏丹
nnoremap <silent> <leader>b :Buffers<CR>
nnoremap <silent> <leader>b :buffers<CR>