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

Search through entire vimwiki

Vimwiki has a simple search included. You can run :VimwikiSearch /pattern/ (the trailing slash is important). To go to the next hit run :lnext and :lprevious for the previous. For more details you ...
apparat's user avatar
  • 941
12 votes

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

I'm going to ignore the majority of your question (perhaps someone will be along later to provide more specifically what you're asking for) and instead suggest that you just use insert mode's indent ...
Rich's user avatar
  • 32.1k
10 votes
Accepted

How to search multiple occurences of a vimwiki tag?

The results from :VimwikiSearchTags are populated in the location-list window, so you can navigate using :lnext and :lprevious, or you can check all the results using :lopen. To be honest, despite I ...
mMontu's user avatar
  • 6,650
10 votes

Mardown files always have vimwiki filetype (vimwiki plugin)

This is the expected behavior of the plugin when you create a file in your vimwiki the filetype is set to vimwiki. If you don't want files created outside of the wiki directory to have this filetype ...
statox's user avatar
  • 50.1k
10 votes
Accepted

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

I was missing a trailing slash on both wiki_?.path values. I corrected my ~/.vimrc as follows: " vimwiki let wiki_1 = {} let wiki_1.path = '~/vimwiki/' let wiki_1.path_html = '~/vimwiki_html/' let ...
StandardEyre's user avatar
  • 1,128
5 votes

How do I jump to tags instead of lines?

There are probably better ways but you could the help functionality as long as the filetype being help is ok. I basically use it to write down things I'm learning as I keep learning how to use gvim, ...
Steve's user avatar
  • 276
5 votes
Accepted

Move lines with tildes to a certain section of a file

Moving completed tasks Presuming that a done line looks like this: - ~A completed task~ Then you can do so with a :global command that performs a :move: :g/^- \~.*\~$/m/^# Things done/+1 :g ...
Rich's user avatar
  • 32.1k
4 votes

No italics in vim

It's possible your terminal doesn't support italics. Go through this link (if you're interested in learning a little) to possibly fix your issue. Start at the paragraph with vimrc in it. I'll provide ...
Scrambo's user avatar
  • 141
4 votes

Search through entire vimwiki

vimgrep There is a command called vimgrep (see :h :vimgrep) that is a native grepping utility built into vim. To search for a pattern in every wiki files in a directory, assuming the wiki files have ...
3N4N's user avatar
  • 5,764
4 votes
Accepted

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

While on the line in question: :s/\w\+/:&:/g Breakdown \w\+ will match 1 or more word characters ([0-9A-Za-z_]). & has a special meaning in a replacement, depending on the value of 'magic' (...
Jake Grossman's user avatar
4 votes
Accepted

how to loop through list of files?

I can do :echo globpath('~/path/to/dir', 'string*') to get a list like: This is not a List. This is a long String with newlines. To get a List you must supply the 4th argument as in :h globpath(): ...
Matt's user avatar
  • 20.8k
3 votes

How do I jump to tags instead of lines?

I think with vim-wiki you can set anchors (from the help): Anchors~ A wikilink, interwiki link or diary link can be followed by a '#' and the name of an anchor. When opening a link, the cursor ...
D. Ben Knoble's user avatar
  • 26.4k
3 votes
Accepted

How do you highlight text surrounded by double equals

I had the same question. My solution is not perfect, since I do not do exactly what you want, but you can adapt my solution to yours, if you are willing to add more highlight groups. To do close what ...
Paul's user avatar
  • 146
3 votes
Accepted

Can't make vimwiki honor setting passed via command line

The commands given with -c are executed after the first file is loaded. I guess that at that time, vimwiki is already initialized and asked for creation of the directory ~/vimwiki. Use --cmd .... ...
Ralf's user avatar
  • 9,257
3 votes

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

Great tip with the slash and the \ws, thx! I have entered the following into my .vimrc (). Hope it helps someone: " Markdown for multiple vimwiki's " let g:vimwiki_list = [{'path': '~/Documents/...
ionescu77's user avatar
  • 131
3 votes
Accepted

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

I added the functionality I wanted to vimwiki and submitted a pull request to get it incorporated into the main body of code. In the process of doing this, I realized I can accomplish my larger goal ...
StandardEyre's user avatar
  • 1,128
3 votes
Accepted

How to make linebreak play along with conceal

No it is not possible. Wrapping occurs on the real characters on the line and not on the concealed characters. Note, that if this would be possible, this would cause kind of "wobbling" effect just by ...
Christian Brabandt's user avatar
2 votes

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

gll indents item right. glh indents item left.
Robert Yang's user avatar
2 votes

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

The vimwiki syntax does not support what you want. When you use > or \/ you are giving the left/above column more space but the text has to be written there and may not span multiple lines. You ...
laktak's user avatar
  • 2,943
2 votes

Open or create a specific Vimwiki page from a command prompt

Add a function like this to you ~/.bashrc: function vimwikipage() { vim -c "VimwikiIndex" -c "VimwikiGoto $1" } Now, you can open/create a specific Vimwiki page like this: $ ...
Alexander Pozdneev's user avatar
2 votes

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

How filepaths are currently handled is problematic for the situation OP described. But additionally, given the same feature, that filepath handling also leads to the following inconsistency. Suppose I ...
Danny Quah's user avatar
2 votes
Accepted

Vimwiki/Markdown blockquote syntax highlight

You can modify the behavior of syntax files. Create a file at .vim/syntax/after/markdown.vim with the contents: "highlight the entire block quote syn match Statement "^> .*" Note '...
Matthew Webb's user avatar
2 votes

Vimwiki: Setting up mathjax

Vimwiki uses "$" and "$" as a delimiter not "\(" and "\)". also include this in your tag, so that MathJax doesn't prompt an error. <script type="...
IvRyN's user avatar
  • 21
2 votes

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

I haven't had time to test more than the first code-block, but the others are mostly mechanical transformations. function MyLinks(pat, strip) abort return glob(a:pat, v:false, v:true) \ ->...
D. Ben Knoble's user avatar
  • 26.4k
2 votes
Accepted

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

Two options: map to the <Plug> sequence for the command you need yourself (vimwiki won't create the mappings if it detects that you already did) " :help vimwiki-global-mappings " :...
D. Ben Knoble's user avatar
  • 26.4k
1 vote

How do I jump to tags instead of lines?

Another solution I'm playing around with (for my own minimalist wiki setup) is the following (assume all notes are in ~/notes): setlocal path+=$HOME/notes/** for any files in ~/notes (this can be ...
D. Ben Knoble's user avatar
  • 26.4k
1 vote

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

Vimwiki also allows you to list all the tags together, with a single : separating multiple tags, such as in: :Word:Compund_Word:Other_Tag: To accomplish this replacement, you can use a :s command ...
filbranden's user avatar
  • 29k
1 vote
Accepted

How can I backup VimWiki on Git

The pushd won’t work because it happens in a temporary shell. You could use cd && ..., but the best (I think) is git -C dir command, which makes git run in the provided directory.
D. Ben Knoble's user avatar
  • 26.4k
1 vote
Accepted

VimWiki linking to files in other directories with special characters

Vimwiki supports markdown syntax. You can use this: [example_file](Notes_0-0-0/subfolder/example_file)
Biggybi's user avatar
  • 2,770
1 vote

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

Specifying the python version in the script like #!/usr/bin/python3 (instead of just #!/usr/bin/python) solves the problem.
alec's user avatar
  • 805

Only top scored, non community-wiki answers of a minimum length are eligible