Skip to main content

Questions tagged [plugin-vimwiki]

Questions about the Vimwiki plugin which allows a personal wiki to be created within vim. The wiki content comes from interlinked text files written in a wiki syntax.

Filter by
Sorted by
Tagged with
0 votes
1 answer
15 views

How to fix vimwiki auto hiding things when the cursor is not at that line?

I am new to Vim/Neovim and I'm facing a problem. I need a very simple setup of vimwiki where I can link mathematica .m files together. No other bells and whistles required right now. I have everything ...
Prem's user avatar
  • 103
0 votes
1 answer
47 views

vimwiki: Links to files and URLs no longer work

Using Vim 9.1 32-bit on Windows 11, with Vimwiki 2.5. I'm not sure what I might have done to cause this, but Vimwiki links to files and URLs no longer work. Examples: https://usbank.com [[file:...
furry_marmot's user avatar
0 votes
1 answer
16 views

Convert vimwiki_diary_months to lua

How do you set g.vimwiki_diary_months in lua? According to :h g.vimwiki_diary_months: *g:vimwiki_diary_months* It is a |Dictionary| with the numbers of months and corresponding names. Diary uses it. ...
Ludenticus's user avatar
0 votes
1 answer
51 views

Generate tag links of search pattern in Vimwiki

Question How to use :VimwikiGenerateTagLink with a search pattern? Explanation The Vimwiki command :VimwikiGenerateTagLinks produces the list of tags and links of your wiki. Without arguments, it ...
Ludenticus's user avatar
1 vote
1 answer
93 views

Highlight link description in vimwiki

I'm trying to customize the colorscheme One for Markdown under Vimwiki. I'd like to change the color of the Description in [Description](URL). In my .vimrc I have the following relevant lines: call ...
Ludenticus's user avatar
1 vote
1 answer
64 views

Disable syntax expansion on cursor hover

I use Neovim with Vimwiki for a personal wiki of mine. I frequently use its syntax for changing typeface; for example _ _ for italic and * * for bold. The syntax is expanded when the cursor is on a ...
efefe's user avatar
  • 11
0 votes
0 answers
77 views

Contextual Snippets not working in inline mathmode of vimwiki

I am trying to use the snippets in math context inside vimwiki filetypes. The math contextual snippets are working fine for ".tex" files, but not for ".wiki" files. However all the ...
vishal rao's user avatar
0 votes
1 answer
2k views

Configuring vimwiki in neovim

I am struggling with the basic configuration for vimwiki in neovim. I cannot get it to use my configuration. For import I am using lazy.nvim. This is the concerning lazy-section: {"vimwiki/...
hmaier's user avatar
  • 123
0 votes
1 answer
119 views

Vimwiki bullet point wrapping creates a new line

When I use vimwiki and I write past the text width, the bullet point will wrap. This is what I expect. However, the wrap will be a new line: 1. something to say ..... a second line wrapped after ...
Vinn's user avatar
  • 781
0 votes
1 answer
1k views

VimWiki - How to create a link to a code file, and open that file with vim

I am new to VimWiki. I am currently taking my class notes with VimWiki, and love the organization it provides.However I want to link my SQL & c code from class to one of my classes index's, but ...
Shaanvir Atwal's user avatar
3 votes
1 answer
224 views

Vimwiki overriding normal md highlighting

I love the concept of Vimwiki, but have a problem with it overriding the default md syntax highlighting. The default works well, and I use it regularly to edit md documents to be used with pandoc. ...
Megymagy's user avatar
1 vote
0 answers
221 views

How do I modify a region's color in a fold?

I'm using the vimwiki plugin. I can successfully change the header colors with something like this: hi VimwikiHeader1 ctermfg=black hi VimwikiHeader2 ctermfg=darkblue hi VimwikiHeader3 ctermfg=cyan hi ...
StevieD's user avatar
  • 1,502
3 votes
0 answers
151 views

Remove one level of all Vimwiki headers in a selection

In Vimwiki, a header level can be decreased, by pressing -. Is there a native Vimwiki command to remove a level from all headers within a visual selection? Keep in mind that Vimwiki supports a number ...
Alexander Pozdneev's user avatar
2 votes
0 answers
497 views

Folding lists in vimwiki with custom folding enabled

vimwiki's help docs, and this answer, both explain how setting g:vimwiki_folding='list' in my vimrc enables list folding for vimwiki files. This lets me use vim's native folding methods on vimwiki ...
murchu27's user avatar
  • 133
3 votes
2 answers
599 views

Backward search in current line with search() and z option

I am trying to write a couple of simple functions to find the next and previous links in Vimwiki and move to them. Links in Vimwiki are indicated with the syntax [[link to something]]. Since I only ...
mgarort's user avatar
  • 275
2 votes
1 answer
370 views

vim-wiki mapping <leader>ww causing delay in another mapping

I'm using Neovim and my init.vim has a quick save mapping as below nmap <leader>w :w!<cr> Since i installed vim-wiki, there's a noticeable delay in the execution of w because of vim-wiki ...
Benny Thadikaran's user avatar
2 votes
1 answer
2k views

VimWiki - create a "smart" index page for subdir/section of wiki?

I'm using VimWiki for a writing project and for certain sections (like "chapters", contained in sub-directories) I want to create indexes that work similarly to the way VimWiki's diary index ...
alec's user avatar
  • 825
4 votes
1 answer
950 views

how to loop through list of files?

I can do :echo globpath('~/path/to/dir', 'string*') to get a list like: /home/alec/path/to/dir/string_xyz123.mkd /home/alec/path/to/dir/string_xyz456.mkd /home/alec/path/to/dir/string_xyz789.mkd but ...
alec's user avatar
  • 825
1 vote
1 answer
259 views

Is it possible to put "|" character in a vimwiki table cell?

vimwiki tables are auto-formattable. This is very convenient but I'm in trouble when I'm trying to make this kind of table. | | Composites | | `xy` | `x` followed by `y` | | `x|...
hong's user avatar
  • 13
2 votes
0 answers
143 views

Conditional mapping for two plugins (UltiSnips and Vimwiki)

Vimwiki table default mappings include <tab> for moving to the next table column in insert mode. Also UltiSnips default mappings include <tab> for expanding snippets in insert mode. Here ...
mahbubweb's user avatar
  • 602
2 votes
1 answer
372 views

How do you highlight text surrounded by double equals

I'm using vimwiki plugin with markdown. I'd like to highlight text using double equals, which isn't standard, but is quite useful. Ideally, this should replace background (for instance, yellow) and ...
Ludenticus's user avatar
3 votes
1 answer
2k views

Vimwiki/Markdown blockquote syntax highlight

AFAIK vimwiki's markdown syntax doesn't emphasize in any way blockquotes. I mean: > This is a quote is presented instead as simple text. For reading notes it can be confusing. So, how do you ...
Ludenticus's user avatar
0 votes
2 answers
123 views

How do you :tag: every word of a line using substitution?

How do you substitute every word of a line, so that it becomes a useful vimwiki tag? Provided the following line: Word Compund_Word I want: :Word: :Compund_Word: I guess it involves some use of ...
Ludenticus's user avatar
2 votes
1 answer
437 views

Open or create a specific Vimwiki page from a command prompt

For opening the index page of my Vimwiki instance, I have the following alias in my ~/.bashrc: alias vimwiki='vim -c VimwikiIndex' But how to open a specific Vimwiki page right from a command prompt?
Alexander Pozdneev's user avatar
1 vote
1 answer
2k views

anyone know how to improve how filepaths are handled in vimwiki?

In VimiWiki plugin, using markdown syntax we can hyperlink to other files... it's great but the problem is how file paths are interpretted. Linking to a file in the current directory is simple and ...
alec's user avatar
  • 825
1 vote
0 answers
69 views

embed one text file in another and edit the embedded file from the file it's embedded in

Is there any existing plugin or gist somewhere that would allow you to embed one text file inside another? Ideally it'd also allow editing the embedded file from the file in which it is embedded. ...
alec's user avatar
  • 825
0 votes
1 answer
729 views

How can I backup VimWiki on Git

I'll start by saying that I never wrote any VimScript or done any advanced configuration in my .vimrc. I'm a super noob 😅. Bear with me. I've been trying to backup my VimWiki on Git. I want to add ...
mokagio's user avatar
  • 103
0 votes
1 answer
2k views

VimWiki linking to files in other directories with special characters

With vimwiki we can create a link to another file, [[DelmeDirectory/delme.md|File]]. I have some directories which have the form Notes_0-0-0 and aren't recognized. i.e. pressing Enter with the cursor ...
algae's user avatar
  • 121
0 votes
1 answer
134 views

How to import library in my template python script? (not working like in vim like in the repl)

I have a python script for generating templates that's being invoked by this line in my vimrc file: autocmd BufNewFile ~/Documents/wiki/diary/*.mkd :silent 0r !vimwiki-diary-template.py That works. ...
alec's user avatar
  • 825
1 vote
0 answers
801 views

How to make VimWiki open file directly in vim instead of VSCode

While using VimWiki, I linked to a file on my computer using [[file:/path/to/file.py]] And when I hit enter, it opens the file with VSCode. I already when to the file in Finder, clicked 'Get Info' ...
Zach's user avatar
  • 11
0 votes
3 answers
1k views

Vimwiki: Setting up mathjax

I'm trying to set up MathJax to work with vimwiki. According to the manual: using the MathJax server for rendering (needs an internet connection). Add to your HTML template the following line: ...
Dianne's user avatar
  • 149
6 votes
3 answers
1k views

How do I jump to tags instead of lines?

I'm using vim as note-taking software. My notes grow to thousands of lines across 7 different files. If I was writing code, I would be able to jump to a function definition in a different file ...
marinara's user avatar
  • 171
1 vote
0 answers
452 views

Folding in VimWiki like in org mode?

I moved from org mode to VimWiki. I used to write "logs" like this * 2020-02-04 FeatureA - progress Feature B - progress The file can get pretty long as you can imagine. Now with ...
hakunin's user avatar
  • 269
4 votes
1 answer
84 views

Move lines with tildes to a certain section of a file

I use vim to write my to-do list in markdown format. To mark a certain task "done" I just make it strikethrough with two tildes(~). Is there a way to automatically move all strikethrough text to a ...
Arthur's user avatar
  • 43
1 vote
1 answer
197 views

Appending file format while turning text into link (by pressing Enter) in Vimwiki

When using the vimwiki plugin, when you want to convert any text into a link you can press enter on the selection. Then you follow the link, create the file and work with it. The problem: When you ...
SqREL's user avatar
  • 11
2 votes
2 answers
563 views

Vimwiki open specific diary on vim startup with bash alias

I am trying to figure out how to open a specific vimwiki diary on opening vim. With one wiki I use an alias like alias todo='vim -c VimwikiDiaryIndex' which works perfectly. But now I want an ...
Abayo's user avatar
  • 23
2 votes
2 answers
893 views

UltiSnips not working with VimWiki

I have been trying to make UltiSnips work with VimWiki to no avail, as they share mappings for expand snippet/next link (on <tab>). I tried setting VimWiki's bindings to something else by using ...
Tomáš Sláma's user avatar
9 votes
2 answers
5k views

Search through entire vimwiki

Is there a (built-in) way to search all vimwiki files for a certain pattern? I don't mean searching tags, but something akin to using grep on all the wiki files in the vimwiki directory. If there is ...
Dianne's user avatar
  • 149
1 vote
1 answer
133 views

Can't make vimwiki honor setting passed via command line

I am trying to write a wrapper shell script that is supposed to launch vim with a vimwiki in current directory: #!/bin/bash gvim -c "let g:vimwiki_list = [{'path': '$PWD/'}] | normal ,ww" The ...
AnonymousLurker's user avatar
8 votes
2 answers
3k views

Mardown files always have vimwiki filetype (vimwiki plugin)

Here is the relevant content of my .vimrc let g:vimwiki_global_ext=0 let g:vimwiki_list = [{'path': 'C:\Users\<USER>\vimwiki', \ 'syntax': 'markdown', 'ext': '.md'}] The ...
raring-coffee20's user avatar
2 votes
1 answer
3k views

No italics in vim

I am using vimwiki on nvim 0.1.7 on Konsole 16.12.3 on Plasma 5.9.5 on Kubuntu 17.04. Wiki text appears bold when it is between two stars. But when between two underscores, it does not appear in ...
deshmukh's user avatar
  • 265
4 votes
1 answer
697 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 ...
Beka's user avatar
  • 295
5 votes
2 answers
3k views

Can vimwiki be made to treat list indentation the way vim-notes does?

I've looked through the vimwiki documentation and a few questions here on SO, but don't see how I can manage this. In vim-notes, hitting TAB within a list indents the entire list item. In vimwiki, ...
Daniel Black's user avatar
2 votes
2 answers
8k views

How to place multiple lines of text in one single table cell in vimwiki?

I want to have multiple lines of text appear in one cell (one row and one column). In Vimwiki it looks adequate. However, when I convert Vimwiki to HTML, each sentence gets its own row. So I know ...
StandardEyre's user avatar
  • 1,128
10 votes
3 answers
4k views

How to search multiple occurences of a vimwiki tag?

I'm using the vimwiki plugin and trying to figure out tagging with vimwiki-syntax-tags. I can add a tag :tag-example: to a vimwiki .wiki file. I can search :VimwikiSearchTags tag-example and it ...
jpm's user avatar
  • 113
8 votes
2 answers
6k views

How do I get multiple vimwikis to show under "Vimwiki / Open Index" in the gvim menu?

I want to work between two vimwiki directories: a private vimwiki and a public vimwiki. How do I get multiple vimwikis in the gvim Vimwiki > Open index > menu? In my ~/.vimrc I have the two ...
StandardEyre's user avatar
  • 1,128
3 votes
2 answers
1k views

Poor syntax highlighting in vimwiki (command prompt)

Is there any way to change the syntax highlighting in vimwiki in windows. I could not properly see the line enclosed between [[some word]]. The same works well in Linux.
neelabalan's user avatar
9 votes
1 answer
7k views

Vimwiki: can't fold list items

With vimwiki you can fold headers and lists as following: Example for headers and list folding: = My current task = * [ ] Do stuff 1 * [ ] Do substuff 1.1 * [ ] Do substuff 1.2 * [ ] ...
user1214's user avatar
6 votes
1 answer
2k views

Altering HTML templates in vimwiki

The vimwiki plugin offers a great feature of converting whole Wiki to HTML: :VimwikiAll2HTML. But it bothers me that there are no back links to the main page, and the only way to navigate back to the ...
Ruslan Osipov's user avatar