Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nblock/vim-dokuwiki
vim-dokuwiki - a VIM syntax file for DokuWiki
https://github.com/nblock/vim-dokuwiki
Last synced: about 1 month ago
JSON representation
vim-dokuwiki - a VIM syntax file for DokuWiki
- Host: GitHub
- URL: https://github.com/nblock/vim-dokuwiki
- Owner: nblock
- Created: 2011-09-29T22:00:42.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2022-09-09T13:34:08.000Z (over 2 years ago)
- Last Synced: 2023-03-10T19:54:44.889Z (almost 2 years ago)
- Language: Vim script
- Homepage:
- Size: 65.4 KB
- Stars: 35
- Watchers: 7
- Forks: 15
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vim-dokuwiki - a VIM syntax file for DokuWiki
## Install
### Vim-Plug
```
Plug 'nblock/vim-dokuwiki'
```### Manual
1) copy [syntax/dokuwiki.vim](syntax/dokuwiki.vim) into your `~/.vim/syntax/`
2) enable by issuing `:set ft=dokuwiki`## Configuration
### Manually enable syntax highlighting for certain filename patterns
Add the following snippet to your vim configuration, in case you
want to enable Dokuwiki syntax highlighting for all `*.txt` files:autocmd BufRead,BufNewFile *.txt set filetype=dokuwiki
### Comment highlighting
If you want to enable the comment plugin highlighting,
assign any value to the `dokuwiki_comment` variable::let dokuwiki_comment=1
To disable it use `:unlet`. Example:
:unlet dokuwiki_comment
### Code block syntax highlighting
Syntax highlighting in code blocks can be enabled by adding the appropriate
languages to the `dokuwiki_fenced_languages` variable in your vimrc.
Example::let g:dokuwiki_fenced_languages = ['c', 'python', 'html']