DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Underscore Highlights Problem in vim Markdown Documents


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


Published

Aug 19, 2015

Last Updated

Aug 19, 2015

Category

Tech

Tags

  • dsnote, atom 1
  • editor 6
  • markdown 6

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor