Wednesday, 24 April 2013

Setup of a notes writing environment (markdown + Voom + markdown2.py) on Windows

This is a note to write down how to set up a working environment for notes writing efficiently on Windows

Environment Requirement

  • VIM editor
  • markdown syntax
  • Voom outline
  • markdown2.py to convert from mkd to html for easily publishing on blog

Install markdown syntax

Install Voom

Install python27 on Windows

  • Install python27 to C:\python27
  • Add this directory to the PATH environment variable

Install distribute package to have the packages installation capability (such as pip, easy_install )

Install markdown2

markdown2.py is used to convert the mkd file to html file - Open a command prompt window, and type
easy_install markdown2 - Then markdown2.py is installed in the c:/python27/scripts

Test it

  • Create a mkd file and write a sample markdown note by VIM
  • You should see the syntax works for this file. If not, add "syntax on" vimrc file
  • Type command ":Voom markdown" within VIM, and another outline window is opened
  • Quit Vim and open a command prompt window, and type
    markdown2.py hello.mkd
  • Error
    close failed in file object destructor: sys.excepthook is missing lost sys.stderr
  • Solution: use "python c:\python27\Scripts\markdown2.py hello.mkd > hello.html" instead of "markdown2.py hello.mkd > hello.html"

No comments :

Post a Comment