Я использую Vim
в качестве текстового редактора для .tex
файла и часто использую команды \rf
и za
, чтобы сложить / развернуть часть файла .tex. Недавно я обновил до vim-latex-1.10.0
, и эти 2 команды больше не работают
za
дает
E490: No fold found
, а при вводе \rf
он входит в режим вставки и заменяет текст ( как, набрав r
вот мой vimrc
файл
" Set the line number
set clipboard=unnamed
set modeline
set hlsearch
set ruler
set laststatus=2
set statusline+=%F
set title
set shiftwidth=0
set autoindent
set smartindent
setlocal foldmethod=syntax
" highlight LineNr ctermfg=white
" set syntax (e.g. color highlighting in code)
syntax on
" colorscheme distinguished
colorscheme onedark
" colorscheme desert
" colorscheme delek
" colorscheme blue
" colorscheme darkblue
" colorscheme default
" colorscheme delek
" colorscheme desert
" colorscheme elflord
" colorscheme evening
" colorscheme koehler
" colorscheme morning
" colorscheme murphy
" colorscheme pablo
" colorscheme peachpuff
" colorscheme ron
" colorscheme shine
" colorscheme slate
" colorscheme torte
" colorscheme zellner
hi Normal guibg=NONE ctermbg=NONE
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'JuliaEditorSupport/julia-vim'
Plugin 'lervag/vimtex'
" A Vim Plugin for Lively Previewing LaTeX PDF Output
Plugin 'xuhdev/vim-latex-live-preview'
let g:livepreview_previewer = 'evince'
let g:Tex_DefaultTargetFormat='pdf'
" let g:livepreview_engine = 'pdflatex' . [-shell-escape]
" let g:livepreview_engine .= ' -shell-escape'
" let g:livepreview_engine = 'evince' . '[-shell-escape]'
" let g:livepreview_engine = . ' -shell-escape'
" let g:vimtex_compiler_latexmk.options += ['-shell-escape']
let g:vimtex_compiler_method = 'latexmk'
let g:Imap_UsePlaceHolders = 0
" let g:livepreview_previewer = 'open -a Preview'
" autocmd Filetype tex setl updatetime=700
Plugin 'Shougo/deoplete.nvim'
if !has('nvim')
Plugin 'roxma/nvim-yarp'
Plugin 'roxma/vim-hug-neovim-rpc'
endif
Plugin 'Shougo/neosnippet.vim'
Plugin 'Shougo/neosnippet-snippets'
"let g:Tex_DefaultTargetFormat='pdf'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" Setting for vim-latex
" http://vim-latex.sourceforge.net/documentation/latex-suite/recommended-settings.html
" REQUIRED. This makes vim invoke Latex-Suite when you open a tex file.
filetype plugin on
" IMPORTANT: win32 users will need to have 'shellslash' set so that latex
" can be called correctly.
set shellslash
" OPTIONAL: This enables automatic indentation as you type.
filetype indent on
" OPTIONAL: Starting with Vim 7, the filetype of empty .tex files defaults to
" 'plaintex' instead of 'tex', which results in vim-latex not being loaded.
" The following changes the default filetype back to 'tex':
let g:tex_flavor='latex'
set number
highlight LineNr guifg=white