Skip to content

Commit d0da54a

Browse files
committed
update README to document how to use it without vim-pandoc
1 parent 0413fc2 commit d0da54a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,17 @@ to `.vimrc`, and then run `:PluginInstall`.
2727
For those who need it, a tarball is available from
2828
[here](https://github.com/vim-pandoc/vim-pandoc-syntax/archive/master.zip).
2929

30+
### Standalone
31+
32+
If you want to use `vim-pandoc-syntax` without vim-pandoc, you'll need to tell
33+
Vim to load it for certain files. Just add something like this to your vimrc:
34+
35+
~~~ vim
36+
augroup pandoc_syntax
37+
au! BufNewFile,BufFilePRe,BufRead *.md set filetype=markdown.pandoc
38+
augroup END
39+
~~~
40+
3041
## Features
3142

3243
* Supports most (if not all) pandoc's markdown features, including tables,

0 commit comments

Comments
 (0)