===== Pandoc as a vim ale fixer ===== --- //[[user:dcai|Dongsheng Cai]] 28 Apr 20// Today I was trying to convert some markdown files to dokuwiki format with [[https://pandoc.org/|pandoc]], it came into my mind that I could use pandoc to format plaintext files, for example, github flavored markdown: pandoc -f gfm -t gfm readme.md --columns=88 This could format the content and wrap line at column 88. So I quickly hacked together [[https://github.com/dense-analysis/ale/compare/master...dcai:master|an ale fixer]] which could automatically fix formatting issues on save for pretty much all plaintext files, markdown, wiki, org, even csv, you name it :) Some interesting findings today: * [[https://w0rp.com/blog/post/vim-script-for-the-javascripter/|a quick vim script guide for js programmer]] by ale's author * [[https://github.com/junegunn/vader.vim|Vader]]: vim unit testing runner, it's created by [[https://github.com/junegunn|Junegunn Choi]], who also created fzf, vim-plug and vim-easy-align, nice work! ~~DISCUSSION~~