Vim Tips Wiki
(standard format)
(10 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{ScriptComments|2226|vimwiki: personal wiki for Vim}}
+
{{ScriptComments|vimwiki: personal wiki for Vim}}
  +
==Links with duplicate names==
  +
I just started using vimwiki. I came across a situtation where I have link "September 2012" in two pages (for example, in daily log and in weekly reports). Here both "September 2012" points to same page, where as I want them to be different. Is there a workaround?
   
  +
==Comments==
 
  +
  +
==Mailto links==
 
It's really a perfect plugin! I've just a proposition to do:
 
It's really a perfect plugin! I've just a proposition to do:
   
Line 7: Line 11:
   
 
But I can't find this option. I guess it's not really complicated to implement this option (and I'll try to do it myself), but it might be a good for everyone. Anyway, thank you very much for your work. Geoffrey Nimal
 
But I can't find this option. I guess it's not really complicated to implement this option (and I'll try to do it myself), but it might be a good for everyone. Anyway, thank you very much for your work. Geoffrey Nimal
  +
  +
----
  +
This is fixed.
  +
<pre>[mailto:HisEmail@here.com EMAIL]
  +
or
  +
mailto:HisEmail@here.com
  +
</pre>
  +
should work.
  +
  +
Maxim Kim.
  +
  +
----
  +
Yes ! But, sorry I wasn't complete enough : the link is not good in the HTML document.
  +
  +
----
  +
''2011-02-15''
  +
  +
I am not sure I get what do you mean by 'not good in the HTML doc'. With the current dev version (downloadable from google code) mailto links are just fine in HTML.
  +
  +
Maxim Kim
  +
  +
==Run commands==
  +
I'm wondering if it would be possible to achieve the following:
  +
I would like to use Viki as a journal, documenting - among other things - commands I ran in terminals. I'm currently keeping simple text files that look like this:
  +
  +
---
  +
This command was used to produce the results:
  +
<pre>
  +
$ ./some_command.sh
  +
</pre>
  +
  +
---
  +
Could Viki be tweaked to recognize the leading $ to treat the rest of the line as "typewriter" text?
  +
  +
----
  +
Shouldn't this Q be redirected to a Viki plugin?
  +
  +
==Upgrade from 1.2==
  +
  +
Dunno, when I upgraded from 1.2 (I used Pathogen this time) I get a ton of errors. For example:
  +
<pre>
  +
line 7:
  +
E121: Undefined variable: path
  +
E116: Invalid arguments for function vimwiki#u#path_common_pfx(idx_path, path) == idx_path
  +
E15: Invalid expression: vimwiki#u#path_common_pfx(idx_path, path) == idx_path
  +
Error detected while processing function <SNR>42_setup_buffer_enter..<SNR>42_find_wiki:
  +
</pre>
  +
  +
What to do? --December 18, 2013
  +
  +
This has been '''resolved'''. I was opening the vim session that was used with the old vimwiki. I didn't realize that the session file saves all vim configurations. Interesting.

Revision as of 16:22, 18 December 2013

Use this page to discuss script 2226 vimwiki: personal wiki for Vim

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on vim.org).
  • This page may be out of date: check the script's vim.org page above, and its release notes.

Links with duplicate names

I just started using vimwiki. I came across a situtation where I have link "September 2012" in two pages (for example, in daily log and in weekly reports). Here both "September 2012" points to same page, where as I want them to be different. Is there a workaround?


Mailto links

It's really a perfect plugin! I've just a proposition to do:

In my professional descriptions wiki, I always add a [[Contact Name]] link and in "Contact Name.wiki" I'd want to add a mailto link, like [[mailto:HisEmail@here.com EMAIL]]. (And if I can put this in a table...).

But I can't find this option. I guess it's not really complicated to implement this option (and I'll try to do it myself), but it might be a good for everyone. Anyway, thank you very much for your work. Geoffrey Nimal


This is fixed.

[mailto:HisEmail@here.com EMAIL]
or
mailto:HisEmail@here.com

should work.

Maxim Kim.


Yes ! But, sorry I wasn't complete enough : the link is not good in the HTML document.


2011-02-15

I am not sure I get what do you mean by 'not good in the HTML doc'. With the current dev version (downloadable from google code) mailto links are just fine in HTML.

Maxim Kim

Run commands

I'm wondering if it would be possible to achieve the following: I would like to use Viki as a journal, documenting - among other things - commands I ran in terminals. I'm currently keeping simple text files that look like this:

--- This command was used to produce the results:

$ ./some_command.sh

--- Could Viki be tweaked to recognize the leading $ to treat the rest of the line as "typewriter" text?


Shouldn't this Q be redirected to a Viki plugin?

Upgrade from 1.2

Dunno, when I upgraded from 1.2 (I used Pathogen this time) I get a ton of errors. For example:

line    7:
E121: Undefined variable: path
E116: Invalid arguments for function vimwiki#u#path_common_pfx(idx_path, path) == idx_path
E15: Invalid expression: vimwiki#u#path_common_pfx(idx_path, path) == idx_path
Error detected while processing function <SNR>42_setup_buffer_enter..<SNR>42_find_wiki:

What to do? --December 18, 2013

This has been resolved. I was opening the vim session that was used with the old vimwiki. I didn't realize that the session file saves all vim configurations. Interesting.