Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [conceal]

The 'conceal' feature allows to hide or replace some part of a buffer thanks to Vim's syntax highlighting mechanism.

Filter by
Sorted by
Tagged with
2 votes
0 answers
22 views

Apply listchars to concealed text by vimtex

I am writing LaTeX with vimtex conceal feature, and need to distinguish between the regular space U+0020 versus the non breaking space U+00A0. Here is a minimal example to reproduce the issue. \...
flinch9483's user avatar
9 votes
2 answers
2k views

Conceal passwords in configuration files but maintain password length

Preamble I often share my screen with other developers over discord. When I navigate to a .env file that has sensitive information, I'd like to conceal that information while still allowing others to ...
Paul Parker's user avatar
2 votes
1 answer
187 views

Conceal features in init.lua

The Neovim user guide says to issue these commands to show the concealed characters in the user guide: :set conceallevel=0 :hi link HelpBar Normal :hi link HelpStar Normal What would be the ...
robertspierre's user avatar
3 votes
1 answer
95 views

Vim syntax highlighting: conceal does not work when opening files from netrw

I use Vim version 8.2.4919 without 3rd party plug-ins on Ubuntu 22.04.2 LTS running via WSL2. I want to have italic syntax highlighting for words encapsulated in underscores in comments of my cpp ...
0x706173696D75's user avatar
0 votes
0 answers
26 views

Replacing text in non selected lines

I have \begin{thm} in a lot of my .tex files. Whenever I am not in the selected line I would like this to be rendered as Theorem. I have tried using conceal but it is limited to rendering a single ...
Maths Wizzard's user avatar
1 vote
1 answer
407 views

Cannot make vim-markdown conceal the formatted text

I am quite new to Neovim, just installed some of the important plugins and now I wanted to make it really good for writing Markdown files. I installed vim-markdown for that, and followed the ...
Educpf's user avatar
  • 43
1 vote
1 answer
58 views

Conceal highlighting not applying to Vim help files

The Conceal highlighting is not working properly when I edit a Vim help file. When I'm in insert mode on a line with concealed text, the concealed characters will be black on black. I can only see ...
Starfish's user avatar
  • 113
2 votes
2 answers
716 views

Conceal comments in Vim/Neovim

I am writing a lot of latex and would like to conceal comments. There are often several lines of text that I comment but would like to keep/not delete. Concealing comments explained: A comment is ...
baxbear's user avatar
  • 314
0 votes
2 answers
197 views

Getting syntax file to load for typescriptreact files

I am very likely missing something very obvious, for I am very new to the vim world. The effect I intended to achieve was to mimic the Inline Fold extension for vscode using vim's Conceal. In short, I'...
Zynh Ludwig's user avatar
3 votes
1 answer
2k views

Weird nvim error: "Error detected while processing BufWinEnter Autocommands" due to indentLine plugin

I'm on MacOS Big Sur. I have the latest Vim and Neovim installed via Homebrew. Loading any source file with Vim works fine. But with nvim, I always greeted by this error: Error detected while ...
anta40's user avatar
  • 143
1 vote
1 answer
58 views

Render characters in buffer differently, e. g. render backslash as lambda

Is it possible to render single characters as a different character in nvim, i.e. "replace" them visually in the buffer?
Al Sneed's user avatar
1 vote
1 answer
72 views

Concealing ~ in texvim + conceal

I tried syn match texStatement '\\\[' contained conceal cchar=⟦ syn match texStatement '\\\]' contained conceal cchar=⟧ syn match texStatement '\\~' ...
Yossi Gil's user avatar
  • 755
1 vote
1 answer
82 views

apply conceal to already defined syntax

I created my own syntax file tailored to UVM log files, in which each line is formatted in the same way: <msg severity> <path>(<line number>) @ <simulation time>: <hierarchy&...
Nimrod Weinberg's user avatar
1 vote
1 answer
51 views

Certain LaTeX not displayed in GVim

I use conceal and write some LaTeX files in the GVim 8.2 editor on windows. The conceal works fine most of the time but it is unable to display certain characters like ∈ and ⊆. It shows a box with a ...
MATHS MOD's user avatar
  • 113
1 vote
1 answer
322 views

Conceal HTML span and highlight content

I am currently writing some Anki cards in NeoVim. Anki supports HTML and I can therefore write cards in the following format. Forumlate the <span class="highlight">Central Limit ...
rkvymvqt's user avatar
1 vote
1 answer
215 views

Toggle specific highlight group

Is it possible to temporarily disable the text highlight under cursor? The current highlight group can be obtained by synIDattr(synIDtrans(synID(line('.'), col('.'), 1)), 'name'). How to clear it to ...
tejasvi88's user avatar
  • 470
2 votes
1 answer
147 views

How to set more than 52 marks?

Possible marks are {a-zA-Z'}. Is there a mechanism to set more of them? The goal is to track certain (modifiable) lines and detect when they are deleted (e.g. with dd). Background I am building a UI ...
tejasvi88's user avatar
  • 470
2 votes
2 answers
896 views

Highlight Unicode Characters

Is it possible to highlight unicode characters? When I copy/paste a code sample I sometimes run into problems because the website uses ‐, ‑, ‒ or – instead of - or some other characters that are hard ...
laktak's user avatar
  • 2,943
1 vote
1 answer
111 views

test_conceal.vim failed: strange, why is that?

Here is the make test result: ------------------------------- Executed: 3788 Tests Skipped: 57 Tests FAILED: 1 Tests Failures: From test_conceal.vim: Found errors in ...
Limina102's user avatar
  • 165
1 vote
1 answer
120 views

Conceal subscripts in Coq syntax

Some context and setup I've been using Coq lately and the excellent coqtail plugin for syntax and proof development. I've seen some folks using Proof General in Emacs for a similar environment, and it ...
D. Ben Knoble's user avatar
  • 26.4k
2 votes
1 answer
370 views

clicking on a line with concealed characters

Let's say I have a latex file with a line $\nabla_Y Z = \nabla_X Y$ If I set conceallevel=2 this becomes ∇_Y Z = ∇_X Y which is nice. If I have my cursor on another line and want to change the Z I ...
0x539's user avatar
  • 197
1 vote
1 answer
659 views

Issues with concealing latex

I am playing around with conceal options in latex, and I would appreciate some help. I am using neovim os OS X if that makes a difference. I have the following settings in my config file Plug 'lervag/...
Me.'s user avatar
  • 121
1 vote
1 answer
137 views

Latex: smaller Greek letters in math mode

In init.vim, I use vimtex and text-conceal, but it seems Greek letters and math operators look smaller. Here is an example: But when the cursor moves away, the math mode looks like this: . From this, ...
tobinz's user avatar
  • 131
3 votes
1 answer
139 views

Yank the characters that replace concealed strings?

For example, in .tex files, the expression $\sum$ is replaced with ∑. I would like to yank ∑, but when I try I get one of the characters that compose $\sum$, even when I set concealcursor. What is the ...
The Footprint's user avatar
1 vote
0 answers
274 views

Vimtex in Spacevim: conceal persists even on cursor line

I am new to (space)vim and I tried to make vimtex work in spacevim. Following the documentation, I added the layer: [[layers]] name = 'lang#latex' in init.toml. Opening a .tex document then the math ...
Patrick.B's user avatar
  • 111
0 votes
2 answers
81 views

conceal function not working in tmux

Version: vim 8.1 Problem: Latex objects like \int, ^, \alpha, \beta, etc, all get replaced by _ in tmux when using conceallevel=1,2. Expected: correct concealment, as it happens in normal terminal, ...
physicophilic's user avatar
4 votes
0 answers
169 views

How to make certain conceal symbols get highlighted differently than others?

I’ve recently tried to make my python more readable using the conceal functionality. So now I went from this to this . Now what really bugs me here is that ƒ, ¶,the ¥ sign, the ℤ and 𝕊 symbols and ...
scientist man's user avatar
1 vote
1 answer
727 views

syn-keyword with control characters?

(I know the goals are dumb, and I know I could set ffs=unix,dos to not see ^M; I'm just trying to understand more about vim). I was playing around with vim keywords, because I want to conceal certain ...
jeremysprofile's user avatar
4 votes
1 answer
3k views

Conceal markdown links and extensions

I wish to fully conceal markdown links, even if they have extensions. For example: [Anchor text](http://whatever...) [Anchor text](http://whatever...){:rel="nofollow noopener noreferrer" ...
Unix's user avatar
  • 143
0 votes
1 answer
1k views

How to overwrite the conceal background color with line color?

I've started using coc for NeoVim and I've setup a highlight for a line with error using the following: hi CocErrorLine guibg=#ce2c28 However, when the error line has a concealed character, it has a ...
Chin Leung's user avatar
1 vote
0 answers
35 views

How can I display text differently from how it is actually stored?

I am making a custom syntax partially based on Markdown. I want to display links differently from how they are stored in the file. For example, [About me](about.md) in the file should be displayed as ...
Flux's user avatar
  • 1,041
1 vote
2 answers
712 views

JSON quotes not hiding and I *want* them to

TL;DR What I Want: JSON files to hide their double quotes (") until I enter insert mode on a line, in which event the quotes reappear. I had this behavior on another machine, but I cannot replicate ...
hoobydooby's user avatar
1 vote
1 answer
727 views

No highlighting for replacement text using conceal

I just discovered Vim's conceal feature. I've added the following to ~/.vim/after/syntax/haskell.vim: syntax match haskOperator "->" conceal cchar=→ syntax match haskOperator "<-" conceal ...
Matthias Braun's user avatar
1 vote
0 answers
158 views

Conceal with the highlighting of matching begin/end latex environment

I want to use vim conceal feature with the highlighting of matching begin/end latex environment (vimtex plugin). When I use the following code syn match texStatement '\\begin{itemize}' contained ...
sfx's user avatar
  • 33
2 votes
0 answers
55 views

Concealing \begin and \end lines in latex with MathZone

I'm trying to get the lines that have \begin{equation} and \end{equation} to be concealed. I've tried using call matchadd('Conceal','\\begin{equation\*}', 10,13,{'conceal':' '}) and it works, but it ...
Marco Crivaro Nicolini's user avatar
0 votes
0 answers
253 views

GVim extremely slow with plugins for long docs

I am using gvim with vimtex (this) with UltiSnips (this) and with conceallevel set to 2. I use the above set-up to write my LaTeX documents. In general, this is slow but if my document is large then ...
Nitin's user avatar
  • 235
2 votes
2 answers
195 views

Is there a simple way to remove a single keyword from a syntax group (or otherwise override it in a match)?

I occasionally like to tinker with syntax files (especially conceals; I use λ for anonymous functions (lambda:, fn) in several languages). However, one complaint with conceal is that I can only use a ...
D. Ben Knoble's user avatar
  • 26.4k
2 votes
1 answer
395 views

Concealing the code for `braket` package for LaTeX with vimtex + `tex-conceal`

I am using vimtex with latexmk and using conceal setting provided by vim and extending it with an additional plug-in : KeitaNakamura/tex-conceal.vim. Additionally, I use a package braket to encode \...
Nitin's user avatar
  • 235
2 votes
2 answers
354 views

Latex Subscripts Rendering Weirdly [duplicate]

I'm trying to type the following latex in nvim: f_{high}=\{1209,1336,1477,1633\}Hz. For some reason, nvim is rendering this as: fₕᵢgₕ= \{ 1209, 1336, 1477, 1633\}\si{Hz} How do I fix this?
ScottishTapWater's user avatar
1 vote
1 answer
294 views

Concealment causes color highlighting to not apply

Following my previous question, I have the same string aaabbbb that I am colorizing in the same way, except with the addition that I am now also trying to conceal the as. Here is the best that I got ...
caveman's user avatar
  • 191
2 votes
1 answer
1k views

How to disable ligatures "inside the editor" while using vim for latex documents? [duplicate]

I'm using vim for writing LaTeX documents. I also have vim-latex installed. While I'm writing my documents in the editor, I get ligatures for that piece of text which is meaningful for the LaTeX ...
Saeed Ahadian's user avatar
1 vote
1 answer
505 views

Unable to use conceal with vim-javascript plugin

editor: NVIM v0.4.3 I have the following syntax file at ~/.config/nvim/after/syntax/javascript.vim syntax clear javaScriptFunction syntax match javaScriptFunction /\<module.exports\>/ ...
Rashid Shaikh's user avatar
1 vote
2 answers
695 views

How to conceal multiple characters without making text dance upon hovering?

Say that I have pattern aaaaapple in my text file, and say that I configured vim so that it conceals a\+. What will happen is that, if conceallevel=1, then aaaaapple will become _pple. Note that ...
caveman's user avatar
  • 191
0 votes
1 answer
3k views

Vimtex conceal not working properly

Hi I am seeing the following on my .tex files. My .vimrc file looks like this let mapleader =" " call plug#begin('~/.vim/plugged') Plug 'lervag/vimtex' let g:tex_flavor='latex' let g:...
antotocar34's user avatar
2 votes
1 answer
97 views

How to conceal zerowidth special characters like <U200C>

That character is used so much in Persian writing. And it makes the text difficult to read. I tried to make my terminal display it correctly but I couldn't I was wondering maybe I could use vim syntax ...
yukashima huksay's user avatar
5 votes
0 answers
510 views

Vimtex conceal doesn't recognize new command math environment

I recently added the vimtex plugin which includes a conceal feature which I really like; however, I found it doesn't work in custom math environments such as \newcommand{\beq}{\begin{equation}} \...
Tatl-Tael's user avatar
0 votes
0 answers
52 views

Use combining characters in concealment character

Are combining characters allowed in a concealment character? The following does not seem to work: syntax match underdot "a\." conceal cchar=ạ The underdot is U+0323. This syntax conceals a. simply ...
user avatar
1 vote
1 answer
1k views

Conceal initially ignored

I'm just trying to get conceal working, so I've created a simple test case. I have a clean .vimrc file with only the following lines: set conceallevel=2 syn match Conceal /syn/ conceal cchar=+ ...
Nathan Wall's user avatar
1 vote
2 answers
2k views

VIM conceal doesn't work

VIM doesn't conceal text, for example tex. Here's my vimrc: "commands for vim-plug "PlugInstall - installs plugs "PlugUpdate - updates plugs "PlugClean - remove unused directories "PlugUpgrade -...
Michał Syposz's user avatar
1 vote
0 answers
65 views

How to stop vim from automatically displaying latex formatting? [duplicate]

I have a latex file I am editing in vim. Something annoying that I'm running into is that vim seems to auto display things that I am typesetting in math mode. Here is an example. Say I write the ...
Burnished Sandalwood's user avatar