Closed PEKEW closed 1 year ago
Your config is messy and not quite up to date. I would strongly recommend that you read the documentation, e.g. :help g:vimtex_view_method
and :help vimtex-view
.
I think you can replace all of the config you showed my with this:
augroup vimtex_common
autocmd!
autocmd FileType tex nmap <buffer> <F9> <plug>(vimtex-compile)
augroup END
let g:vimtex_view_method = 'skim'
let g:vimtex_compiler_latexmk = {
\ 'build_dir' : 'build',
\ 'options' : [
\ '-shell-escape',
\ '-verbose',
\ '-file-line-error',
\ '-synctex=1',
\ '-interaction=nonstopmode',
\ ]}
let g:vimtex_toc_config = {
\ 'name' : 'TOC',
\ 'layers' : ['content', 'todo', 'include'],
\ 'resize' : 1,
\ 'split_width' : 30,
\ 'todo_sorted' : 0,
\ 'show_help' : 1,
\ 'show_numbers' : 1,
\ 'mode' : 2,
\ }
Thank you very much for your help, I am not very familiar with the configuration of vim. I used your config and now everything is OK
Your config is messy and not quite up to date. I would strongly recommend that you read the documentation, e.g.
:help g:vimtex_view_method
and:help vimtex-view
.I think you can replace all of the config you showed my with this:
augroup vimtex_common autocmd! autocmd FileType tex nmap <buffer> <F9> <plug>(vimtex-compile) augroup END let g:vimtex_view_method = 'skim' let g:vimtex_compiler_latexmk = { \ 'build_dir' : 'build', \ 'options' : [ \ '-shell-escape', \ '-verbose', \ '-file-line-error', \ '-synctex=1', \ '-interaction=nonstopmode', \ ]} let g:vimtex_toc_config = { \ 'name' : 'TOC', \ 'layers' : ['content', 'todo', 'include'], \ 'resize' : 1, \ 'split_width' : 30, \ 'todo_sorted' : 0, \ 'show_help' : 1, \ 'show_numbers' : 1, \ 'mode' : 2, \ }
Thank you very much for your help, I am not very familiar with the configuration of vim. I used your config and now everything is OK
Thank you very much for your help, I am not very familiar with the configuration of vim. I used your config and now everything is OK
Great, happy to help! And glad to hear things are working now.
Description
Hi, I configured vimtex with NeoVIM, but previewing with skim is frequently not responding when I compile a tex file. The timeline of the issue is as follows:
my config:
Steps to reproduce
No response
Expected behavior
No response
Actual behavior
No response
Do you use a latexmkrc file?
No
VimtexInfo