Install GFM plugin for vim
To fix the highlight problem,
use Plugin 'jtratner/vim-flavored-markdown'
instead of
Plugin 'plasticboy/vim-markdown'
in .vimrc,
and run vim +PluginClean +PluginInstall +qall
.
Use Atom as Editor
Install Atom and modify the value of "EDITOR" in $DSNOTE_HOME/notes.sh to "atom -f".
Run in foreground
dsnot works in sync manner, while the default Atom working flow is async. So use "atom -f" instead of "vim" for the value of variable "EDITOR".
Chinese character support
Verified on Ubuntu 14.04 LTS.
First install font "文泉驿正黑":
sudo aptitude install ttf-wqy-microhei
sudo aptitude install ttf-wqy-zenhei
Then press "Ctrl+," to open settings panel:
Set [Settings -> Editor Settings -> Font Family] as:
DejaVu Sans Mono, 文泉驿正黑
But Chinese characters can't be displayed in preview window.
Toggle Tree View
Use ctrl-\
to toggle tree view.
alt-\
or ctrl-0
to focus it.
Markdown editing and preview
Use Ctrl-Shift-M
to toggle preview panel.
Install some advanced packages:
apm search vim
apm install vim-mode
apm install markdown-scroll-sync
apm install markdown-writer
apm install markdown-preview-plus
apm install markdown-format