I run vimwiki using the following oneliner:
HTML="$PWD/html"; gvim -c "let g:vimwiki_conceallevel=0 | let g:vimwiki_list =
[{}, {'path': '$PWD', 'path_html': '$HTML', 'nested_syntaxes': {'python':
'python', 'sh': 'sh'}}] | normal 2\\ww"
this allows me to open a custom wiki in the current directory.
I have a wiki page in the wiki, which I reach by hitting Enter on a few wiki
links.
The wiki page has content like this:
---snip---
{{{class="brush: sh"
HTML="$PWD/html"; gvim -c "let g:vimwiki_list = [{}, {'path': '$PWD',
'path_html': '$HTML'}] | normal 2\\ww"
}}}
{{{class="brush: python"
for i in range(1, 5):
print(i)
}}}
---snip---
The problem is that when I open the wiki page, the code snippets aren't
highlighted by default. They get highlighted only after I manually issue a
`:syntax on` command.
Slackware64-14.0
vim version 7.3.645
vimwiki-2-1
Original issue reported on code.google.com by rwxrwx.m...@tut.by on 17 May 2013 at 9:55
Original issue reported on code.google.com by
rwxrwx.m...@tut.by
on 17 May 2013 at 9:55