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 Contentsplugin 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 Sourceand you’ll open that note in Vim. - You can bind that to a keyboard shortcut, for example maybe
F4. Search for keywordedit_page_sourcein~/.config/zim/accelmapand change the line to be:1(gtk_accel_path "<Actions>/GtkInterface/edit_page_source" "F4")
More info: http://zim-wiki.org/manual/Start.html