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
62 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
  • 627
0 votes
1 answer
477 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
2 votes
1 answer
116 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
0 votes
0 answers
147 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,387
2 votes
0 answers
130 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
394 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
463 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
303 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 ...
Bob's user avatar
  • 23
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
  • 765
4 votes
1 answer
785 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
  • 765
1 vote
1 answer
218 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
122 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
  • 582
2 votes
1 answer
289 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
2 votes
1 answer
1k 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
116 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
337 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
  • 765
1 vote
0 answers
52 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
  • 765
0 votes
1 answer
615 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
128 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
  • 765
1 vote
0 answers
699 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
892 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
  • 139
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
414 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
80 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
0 answers
151 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
491 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
824 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
8 votes
2 answers
4k 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
  • 139
1 vote
1 answer
131 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
7 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 ...
Tuyen Pham's user avatar
  • 1,246
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
3 votes
1 answer
628 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
  • 285
4 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
1 vote
2 answers
7k 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,078
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
  • 103
8 votes
2 answers
5k 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,078
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
6k 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