Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get Vimwiki links to display as underlined instead of default brackets [[]]?

Tags:

vim

When looking at a the Vimwiki docs, I see this image desired link style

which shows a Vimwiki link as underlined.

But when I make a link using [[linktosomething]], it shows up with the brackets. It still works as expected, but how do I change the style.

Mine looks like this:

my link

In the Vimwiki docs I set the .vimrc to include the typical:

set nocompatible
filetype plugin indent on
syntax on

Is this an issue with Vimwiki syntax vs markdown syntax? Im confused about how to get the desired link styling

like image 961
zachsergeant Avatar asked Nov 19 '25 10:11

zachsergeant


1 Answers

As D. Ben Knoble said, it seems like you need a build of Vim with the conceal option enabled. According to mediapathic in this article, macOS' own Vim build doesn't have it, whereas MacVim's does.

Launching Vimwiki with MacVim you get the brackets hidden by default. If you tried to query the status of conceallevel using :set conceallevel?, you get 2, instead of E519: Option not supported: conceallevel? in macOS' built-in vim.

Although I haven't tried myself, but you can also try building vim from its source with the +conceal option enabled.

like image 135
Kevin Peng Avatar answered Nov 22 '25 02:11

Kevin Peng



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!