Installation on Linux
- Install Zim:
sudo apt install zim
- Install the syntax highlighting plugin
Source View
:sudo apt install python-gtksourceview2
Source View Plugin Usage
- Enable the Source View plugin:
Edit -> Preferences -> Plugins -> Check: Source View -> OK
- Insert a new code block:
Insert -> Code Block
Usage Tips
- <Ctrl>J: Jump to page… (either an existing or a new page)
- Enable the
Table of Contents
plugin to display the headings of the current article in a floating window on the top right corner.
Set Vim as Default Editor
- Go to
Edit -> Preferences -> Applications -> Set default text editor
, and then set it to Gvim. Now when you’re looking at a note, go toTools -> Edit Source
and you’ll open that note in Vim. - You can bind that to a keyboard shortcut, for example maybe
F4
. Search for keywordedit_page_source
in~/.config/zim/accelmap
and change the line to be:1(gtk_accel_path "<Actions>/GtkInterface/edit_page_source" "F4")
More info: http://zim-wiki.org/manual/Start.html