正文
效果预览
安装Skim
下载Skim用来预览pdf文件

安装vim
插件 vim-latex-live-preview
用Vim-plug安装,把这条命令填到vimrc
文件中 两个Call
之间 1
Plugin 'xuhdev/vim-latex-live-preview'
配置
在.vimrc
中写入配置..
设置刷新间隔
1
autocmd filetype tex setl updatetime=1000
将
Skim
设为pdf实时浏览器1
let g:livepreview_previewer = 'open -a Skim'
配置Skim如下

使用
在vim
normal
模式下输入以下命令可以进入实时预览
1
:LLPStartPreview

快捷键映射
.vimrc
中配置如下 - F6进入预览, 1
2nmap <F6> :LLPStartPreview<CR>
imap <F6> <ESC>:LLPStartPreview<CR>
- 打开文件自动进入预览
1
autocmd filetype tex :LLPStartPreview
转载请注明来源 https://tianweiye.github.io