Repository: lervag/vimtex

Issue #2263: Ignore latex warnings
Created: 2021-12-01T16:46:26Z
Description
Dear developer,
I get warnings such as the following with vimtex:

Interword spacing ('\ ') should perhaps be used. (12)
Intersentence spacing ('@ ') should perhaps be used. (13)
Non-breaking space ('~') should have been used. (2)
missing '\ ' after "etc."
Delete this space to maintain correct pagereferences (24)

Is there a way to ignore these warnings?
Thanks,
Best,
Uthpala
Steps to reproduce
No response
Expected behavior
No response
Actual behavior
No response
Do you use a latexmkrc file?
yes
VimtexInfo
System info
  OS: macOS 12.0.1 (21A559)
  Vim version: VIM 8.2 (1-2681)
  Has clientserver: true
  Servername: VIM

VimTeX project: main
  base: main.tex
  root: /Users/uthpala/Dropbox/research/Publications/LaNiO3-OV/Overleaf-LaNiO3-Oxygen-vacancies
  tex: /Users/uthpala/Dropbox/research/Publications/LaNiO3-OV/Overleaf-LaNiO3-Oxygen-vacancies/main.tex
  main parser: current file verified
  document class: revtex4-2
  packages: amsmath amssymb babel bm booktabs braket caption color dcolumn fancyvrb float graphicx hyperref inputenc lineno listings multirow soul subcaption todonotes verbatim verbatimbox wrapfig
  compiler: latexmk
    engine: -pdf
    options:
      -verbose
      -file-line-error
      -synctex=1
      -interaction=nonstopmode
    callback: 1
    continuous: 1
    executable: latexmk
  viewer: Skim

Duplicate issue #2937: Option to turn chktex off
Created: 2024-04-22T14:03:37Z
Hi Lervag, thanks again for all your work here.
I'd like for warnings such as the following to not automatically appear in my documents while writing and I think the culprit is chktex:
% W: missing `\…
% W: Interword spacing (`\ ') should perhaps be used. (12)

Ideally for me, chktex would write only to a file that I could inspect separately, but I'll settle to just like to turn chktex off entirely. Reading through documentation I had though the following would work, but it does not
let g:vimtex_lint_chktex_ignore_warnings = '-nall -oall'
Edit: Is this a duplicate of #2263?
I do not think I have any linter or lsp plugin installed; here's the beginning of my vimrc:
filetype on
filetype plugin on
filetype plugin indent on
syntax enable
set nocompatible
call plug#begin()
Plug 'lervag/vimtex'
Plug 'morhetz/gruvbox'
Plug 'KeitaNakamura/tex-conceal.vim'
Plug 'JuliaEditorSupport/julia-vim'
Plug 'jpalardy/vim-slime'
Plug 'mroavi/vim-julia-cell', { 'for': 'julia' }
Plug 'hanschen/vim-ipython-cell', { 'for': 'python' }
Plug 'iberianpig/ranger-explorer.vim'
call plug#end()

Closing comment (2024-04-22T14:39:53Z): I'd like for warnings such as the following to not automatically appear in my documents while writing and I think the culprit is chktex: …

VimTeX does not give this type of warning by default. The chktex utility should not be run automatically unless you have specifically configured it to do so.

Edit: Is this a duplicate of #2263?

Yes, perhaps.

I do not think I have any linter or lsp plugin installed; here's the beginning of my vimrc: …

You don't need the first 5 lines - plug#end() will do the filetype and syntax stuff, and set nocompatible is not needed in vimrc file. Also, I think VimTeX more or less is a superset of the tex-conceal.vim plugin now, so I think you don't need that one either.
Now, it's hard to say what's wrong on your end based on only the start of your vimrc...
When you open a LaTeX file, what is the output of :scriptnames?