Skip to content

Instantly share code, notes, and snippets.

@alfredodeza
Created March 7, 2016 13:45
Show Gist options
  • Save alfredodeza/b3be2849f55a9f101586 to your computer and use it in GitHub Desktop.
Save alfredodeza/b3be2849f55a9f101586 to your computer and use it in GitHub Desktop.
Read non-plaintext file types in Vim
" requires pandoc, the newest the version the better
autocmd BufReadPost *.doc,*.docx,*.rtf,*.odp,*.odt silent %!pandoc "%" -tplain -o /dev/stdout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment