为什么在Vim上的TeX中会出现回勾?

为什么在Vim上的TeX中会出现回勾?,vim,tex,Vim,Tex,当我在Vim上编辑TeX文件时,insert模式下的Backtick(`)工作异常。 我希望当我键入`aVim显示`a时,当我键入`b时,它显示`b,依此类推。 但是,事实上,当我键入`a时,它只显示a,当我键入`b时,它只显示b。 此外,当我输入时,例如,`j,它会像我预期的那样显示`j。 一些字母后面的倒勾将显示一个倒勾(正如我所期望的),而其他字母没有倒勾(奇怪的行为)。 下面的列表显示了哪些字母跟在倒勾后面,哪些字母取代了倒勾 下列的 替换 /`a变成了a a b c d e f g h

当我在Vim上编辑TeX文件时,insert模式下的Backtick(
`
)工作异常。 我希望当我键入
`a
Vim显示
`a
时,当我键入
`b
时,它显示
`b
,依此类推。 但是,事实上,当我键入
`a
时,它只显示
a
,当我键入
`b
时,它只显示
b
。 此外,当我输入时,例如,
`j
,它会像我预期的那样显示
`j
。 一些字母后面的倒勾将显示一个倒勾(正如我所期望的),而其他字母没有倒勾(奇怪的行为)。 下面的列表显示了哪些字母跟在倒勾后面,哪些字母取代了倒勾

下列的 替换
/`a变成了a
a b c d e f g h i k
l m n p q r s t u w
x y z A D E F G L P
Q S U W X Y 6 8 0*
( ) = \ ` [ ] . < >
仅当我在插入模式下编辑TeX文件时,此行为才会出现。 在正常模式下,我跳转到标记位置,在标记时,我的Vim显示一定数量的反勾号

为什么它会以这样的方式工作?我应该怎么做才能让它以某种方式工作


  • macOS Sierra 10.12.3
  • Vim 8.0.57
我的vimrc:

if 0 | endif

if has('vim_starting')
    if &compatible
        set nocompatible
    endif

    set runtimepath+=~/.vim/bundle/neobundle.vim/
endif

call neobundle#begin(expand('~/.vim/bundle/'))

NeoBundleFetch 'Shougo/neobundle.vim'

NeoBundle 'thinca/vim-quickrun'

NeoBundle 'Shougo/vimproc',{
            \'build' : {
            \  'windows' : 'make -f make_mingw32.mak',
            \  'cygwin' : 'make -f make_cygwin.mak',
            \  'mac' : 'make -f make_mac.mak',
            \  'unix' : 'make -f make_unix.mak',
            \  },
            \ }

NeoBundle 'Shougo/unite.vim'

NeoBundle 'osyo-manga/unite-quickfix'

NeoBundle 'osyo-manga/shabadou.vim'

NeoBundle 'lervag/vimtex'

NeoBundle 'Shougo/neosnippet'

NeoBundle 'Shougo/neocomplete'

NeoBundle 'Shougo/neosnippet-snippets'

NeoBundle 'nelstrom/vim-visual-star-search'

NeoBundle 'tpope/vim-fugitive'

NeoBundle 'vim-ruby/vim-ruby'

NeoBundle 'tpope/vim-endwise'

NeoBundle 'plasticboy/vim-markdown'

NeoBundle 'kannokanno/previm'

NeoBundle 'tyru/open-browser.vim'

NeoBundle 'derekwyatt/vim-scala'

NeoBundle 'scrooloose/nerdtree'

call neobundle#end()

filetype plugin indent on


NeoBundleCheck

syntax on


set spelllang=en,cjk
set spell

set expandtab
set shiftwidth=2
set softtabstop=2
set autoindent
set smartindent

set pumheight=10

set showmatch
set matchtime=1

set wrap

set ignorecase
set smartcase

set scrolloff=3
set ruler
set display=lastline

set cole=0

set backspace=indent,eol,start

au FileType * setl cole=0

nnoremap j gj
nnoremap k gk
nnoremap <Down> gj
nnoremap <Up> gk

nnoremap gj j
nnoremap gk k

nnoremap <silent><C-l> <C-w>l
nnoremap <silent><C-h> <C-w>h
nnoremap <silent><C-k> <C-w>k
nnoremap <silent><C-j> <C-w>j
nnoremap <silent><C-e> :NERDTreeToggle<CR>

nnoremap <Space>h ^
nnoremap <Space>l $

inoremap <C-j> <BS>
cnoremap <C-j> <BS>

imap <C-k>  <Plug>(neosnippet_expand_or_jump)
smap <C-k>  <Plug>(neosnippet_expand_or_jump)
xmap <C-k>  <Plug>(neosnippet_expand_target)

imap <expr><TAB> neosnippet#expandable_or_jumpable() ?
            \ "\<Plug>(neosnippet_expand_or_jump)"
            \: pumvisible() ? "\<C-n>" : "\<TAB>"

smap <expr><TAB> neosnippet#expandable_or_jumpable() ?
            \ "\<Plug>(neosnippet_expand_or_jump)"
            \: "\<TAB>"


let g:tex_conceal = ''

let g:quickrun_config = {
            \ 'split' : '',
            \ 'runner' : 'vimproc',
            \ 'runner/vimproc/updatetime' : 10,
            \ 'tex' : {
            \ 'command' : 'latexmk',
            \ 'cmdopt' : '-pvc -pdfdvi',
            \ 'exec' : ['%c %o %s']
            \ },
            \}
if 0 | endif
如果有(“vim_启动”)
if&兼容
兼容模式
恩迪夫
设置runtimepath+=~/.vim/bundle/neobundle.vim/
恩迪夫
调用neobundle#begin(展开('~/.vim/bundle/'))
NeoBundleFetch'Shougo/neobundle.vim'
NeoBundle“thinca/vim quickrun”
NeoBundle'Shougo/vimproc'{
\“建造”:{
\“windows”:“make-f make_mingw32.mak”,
\‘cygwin’:‘make-f makeu cygwin.mak’,
\‘mac’:‘make-f make_mac.mak’,
\'unix':'make-f make_unix.mak',
\  },
\ }
NeoBundle“Shougo/unite.vim”
NeoBundle“osyo漫画/联合快速修复”
NeoBundle‘osyo漫画/shabadou.vim’
NeoBundle'lervag/vimtex'
NeoBundle“Shougo/Neosippet”
NeoBundle“Shougo/neocomplete”
NeoBundle“Shougo/Neosippet片段”
NeoBundle“nelstrom/vim可视星搜索”
NeoBundle“TPOP/vim逃犯”
NeoBundle“vim ruby/vim ruby”
NeoBundle“t向上/向上”
NeoBundle“plasticboy/vim降价”
NeoBundle“kannokanno/previm”
NeoBundle“tyru/open browser.vim”
NeoBundle“derekwyatt/vim scala”
NeoBundle'Scroloose/nerdtree'
调用neobundle#end()
文件类型插件缩进
纽布勒切克
语法高亮
设置拼写lang=en,cjk
设置咒语
设置扩展选项卡
设置shiftwidth=2
设置softtabstop=2
自动缩进
智能对齐
设置泵的高度=10
布景
设置匹配时间=1
自动换行
置之不理
设置smartcase
设置scrolloff=3
定尺
设置显示=最后一行
设置cole=0
设置退格=缩进、下线、开始
au文件类型*setl cole=0
nnoremap j gj
nnoremap k gk
nnoremap gj
nnoremap gk
nnoremap gj j
nnoremap gk
nnoremap l
nnoremap h
nNOREMAPK
nnoremap j
nnoremap:nerdtreethoggle
nnoremap h^
nnoremap l$
inoremap
cnoremap
imap(新代码段\扩展\或\跳转)
smap(新代码片段\u扩展\u或\u跳转)
xmap(新代码段\扩展\目标)
imap neosnippet#可扩展_或_可跳转()?
\“\(新代码片段\u扩展\u或\u跳转)”
\:pumpvisible()?"\" : "\"
smap新代码片段#可扩展_或_可跳()?
\“\(新代码片段\u扩展\u或\u跳转)”
\: "\"
让g:tex_隐藏=“”
设g:quickrun\u config={
\“分割”:“,
\“runner”:“vimproc”,
\“runner/vimproc/updatetime”:10,
\“特克斯”:{
\'command':'latexmk',
\'cmdopt':'-pvc-pdfdvi',
\'exec':['%c%o%s']
\ },
\}

检查您的文件类型、语法和密钥映射

:set ft? syn?
:imap
:map
尝试禁用有向图:

:set nodigraph
尝试删除语法配置文件中可能定义的任何反勾号映射:

:iunmap `

这有用吗
:set cole=0
很抱歉,在发帖之前我没有做任何测试。当我只禁用了插件vimtex时,问题就解决了。我没有太多地使用vimtex,所以我决定关闭这个插件。谢谢
:set nodigraph
:iunmap `