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
0
votes
0answers
26 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 ...
1
vote
1answer
54 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=+ ...
1
vote
2answers
182 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 -...
1
vote
0answers
56 views

Add conceal in function

Trying to maintain add conceals to the generated location list, but I can not figure it out. The current workaround is to add it manually everytime through the vim commandline, like: : set ...
1
vote
0answers
51 views

Why does this autocommand works on neovim but not on vim?

I have this little augroup that contains a simple autocommand that hides the /home/devs/ text on top of nerdtree: augroup HideHOME autocmd! FileType nerdtree autocmd FileType nerdtree syntax ...
0
votes
1answer
56 views

Display the first line of some file instead of an identifier

Is there some way to display an identifier as something else? Imagine the following setup: You have a readme file: * <<123456>> * <<789078>> This readme file is inside of a ...
0
votes
1answer
119 views

how to conceal filename and line number in quickfix window

Context Say in vim, after :grep text *, then :copen, then cursor in a quickfix window, which has contents like below some-very-very-very-long-path/file1.txt|1 col 46| some text some-very-very-very-...
3
votes
1answer
129 views

How to conceal Markdown syntax per-word, rather than per-paragraph?

I want to use Vim to write markdown in a sort-of-WYSIWYG manner (for use with an audience). For example, typing **Bold** should display Bold in bold font, with the asterisks automatically hidden as ...
0
votes
1answer
153 views

Persistent conceal settings through Vim / Neovim restarts

I can successfully toggle between different conceal levels in Neovim, which is rather handy when working with markdown documents. Also, when working with with multiple documents in a Neovim session, ...
1
vote
2answers
644 views

How to show math equations or formula in markdown file

I like to write notes in markdown file. Most of the times my notes are about coding, but sometimes I need to write some math equations or symbols. I would like to see the equations directly in the vim,...
6
votes
0answers
52 views

Why are tabs adjacent to concealed tabs displayed wider than a single tabstop?

I just wrote the following code in an answer to another question: syntax match HideTwoIndents /\v^\t(\t)?/ conceal set conceallevel=2 This works great if 'list' is set and if 'listchars' does not ...
4
votes
1answer
1k views

change how a character is displayed

Is it possible to change how a character is displayed? I explain better, I want to replace the character '*' with math unicode '∗' [U+2217]. This should affect only the way the character is displayed ...
3
votes
0answers
68 views

Can I change the highlight of specific conceals?

I'm using :syn-cchar to replace certain syntactic elements with Unicode characters (à la vim-haskellConcealPlus). Since I'm replacing several different elements, I'd like to be able to highlight some ...
0
votes
1answer
153 views

How to make linebreak play along with conceal

I am using vimwiki with and conceal the long URLs as links like this: [[http://a-really-long-long-url|Link]] rest of text Under my configuration (conceallevel=2 concealcursor=nc linebreak) it should ...
6
votes
4answers
1k views

Markdown in Neovim: which plugin sets conceallevel=2?

I'm experiecing the most annoying thing ever: when I edit a markdown file, asterisk characters are hidden by default. If I set on an open buffer :set conceallevel=0, asterisks shows up as they should,...
0
votes
1answer
54 views

How to display hyphens as □ in taskpaper files?

I’m using taskpaper.vim to work with projects and tasks and would like to display the hyphen that starts a tasks as the □ (unicode white square). I don't want to actually replace the character in the ...
2
votes
2answers
244 views

How can I hide blank lines in vim without actually removing them from the text I am editing?

For example, if I had source text like this (with the numbers on the left representing line numbers that are not part of the source text): 1 foo 2 bar 3 4 baz it would appear as: 1 foo 2 bar 4 ...
1
vote
1answer
299 views

Get which plugin sets a specified variable?

Is there a way to know which installed Vim/Neovim plugin sets a specified variable? For example, I use Neovim 1.5-dev with the following plugins installed: morhetz/gruvbox tomasr/molokai mhartington/...
5
votes
2answers
568 views

Vim conceal indentation. Replace indentation spaces with utf-8 chars

I use four spaces for indent. I would like to replace the indentation with some UTF-8 chars. What I have: 1. def foo(bar): for jaffa in bar: print jaffa 2. var foo = function(bar){ ...
4
votes
1answer
94 views

How do I search only the displayed part of concealed text?

If I have syntax highlighting rules setup using conceal to hide or change certain characters in a file, how do I search what is displayed, as opposed to what the buffer actually contains? The ...
3
votes
0answers
72 views

Can I disable sidescrolling altogether? [duplicate]

If some characters are concealed in a line, so that the effectively the entire line is visible, and nowrap is set, moving to the end of the line can cause Vim to scroll if the actual line length is ...
2
votes
1answer
68 views

Conflict: concealment and paragraph formatting

When formatting paragraphs with concealed elements, the formatting program does not take into account that some characters are invisible, and renders some lines shorter than the rest, when using the ...
2
votes
1answer
50 views

How do I hide a TeX macro and highlight the arguments?

I have to put a macro in front of Greek text to get correct hyphenation, such that I have, e.g.: possibly \textgreek{κινούμενον} and possibly not. Could I use conceal to conceal the macro and show ...
1
vote
0answers
245 views

Conceal not working with tex files and vim-plug

Normally, :syn match Entity "e" conceal and :set conceallevel=3 results in all es being concealed. But, if I use vim-plug, this does not work in a tex-file …
4
votes
1answer
68 views

Get visual column number with conceal feature

One can use col('$') to get the length of the current cursor line. Further, one can use virtcol('$') to get the same length, but this returns the actual screen column. However, it ignores the conceal ...
4
votes
2answers
1k views

Adding conceal to already existing syntax highlighting?

I'm using Vim with the Vaxe plugin for syntax highlighting, the plugin's highlighting file is here for reference. I'm trying to add some conceals to tidy up the code visually, but I can't seem to get ...
8
votes
2answers
2k views

Hide certain lines completely (not folding)

I would like to be able to hide certain lines in my buffer from showing up at all (and being able to toggle seeing them). I found similar questions, but they don't solve my problem. I don't want to ...
8
votes
2answers
660 views

Is there a way to conceal across lines?

Here is my use case: I have lots of code which because of style enforcement we write newlines after and before each open and close brace (respectively). Example: function func(args) { ...
35
votes
1answer
2k views

How to disable horizontal scrolling?

I have some concealed characters in the buffer and horizontal scrolling kills the alignment big time. Is there any way how to disable it? I could not find any relevant options. Edit: Demo added. You ...