All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 *vim-markdown* Vim Markdown
3 ===============================================================================
6 1. Introduction |vim-markdown-introduction|
7 2. Installation |vim-markdown-installation|
8 3. Options |vim-markdown-options|
9 1. Disable Folding |vim-markdown-disable-folding|
10 2. Change fold style |vim-markdown-change-fold-style|
11 3. Disable Default Key Mappings |vim-markdown-disable-default-key-mappings|
12 4. Syntax extensions |vim-markdown-syntax-extensions|
13 1. LaTeX math |vim-markdown-latex-math|
14 2. YAML frontmatter |vim-markdown-yaml-frontmatter|
15 4. Mappings |vim-markdown-mappings|
16 5. Commands |vim-markdown-commands|
17 6. Credits |vim-markdown-credits|
18 7. License |vim-markdown-license|
19 8. References |vim-markdown-references|
21 ===============================================================================
22 *vim-markdown-introduction*
25 Syntax highlighting, matching rules and mappings for the original Markdown [1]
28 ===============================================================================
29 *vim-markdown-installation*
32 If you use Vundle [2], add the following line to your '~/.vimrc':
34 Plugin 'godlygeek/tabular'
35 Plugin 'plasticboy/vim-markdown'
37 The 'tabular' plugin must come _before_ 'vim-markdown'.
44 If you use Pathogen [3], do this:
47 git clone https://github.com/plasticboy/vim-markdown.git
49 To install without Pathogen using the Debian vim-addon-manager [4], do this:
51 git clone https://github.com/plasticboy/vim-markdown.git
54 vim-addon-manager install markdown
56 If you are not using any package manager, download the tarball [5] and do this:
59 tar --strip=1 -zxf vim-markdown-master.tar.gz
61 ===============================================================================
62 *vim-markdown-options*
65 -------------------------------------------------------------------------------
66 *vim-markdown-disable-folding*
69 Add the following line to your '.vimrc' to disable the folding configuration:
71 let g:vim_markdown_folding_disabled=1
73 This option only controls Vim Markdown specific folding configuration.
75 To enable/disable folding use Vim's standard folding configuration.
79 -------------------------------------------------------------------------------
80 *vim-markdown-change-fold-style*
83 To fold in a style like python-mode [6], add the following to your '.vimrc':
85 let g:vim_markdown_folding_style_pythonic=1
87 -------------------------------------------------------------------------------
88 *vim-markdown-disable-default-key-mappings*
89 Disable Default Key Mappings ~
91 Add the following line to your '.vimrc' to disable default key mappings:
93 let g:vim_markdown_no_default_key_mappings=1
95 You can also map them by yourself with '<Plug>' mappings.
97 -------------------------------------------------------------------------------
98 *vim-markdown-syntax-extensions*
101 The following options control which syntax extensions will be turned on. They
104 -------------------------------------------------------------------------------
105 *vim-markdown-latex-math*
108 Used as '$x^2$', '$$x^2$$', escapable as '\$x\$' and '\$\$x\$\$'.
110 let g:vim_markdown_math=1
112 -------------------------------------------------------------------------------
113 *vim-markdown-yaml-frontmatter*
116 Highlight YAML frontmatter as used by Jekyll:
118 let g:vim_markdown_frontmatter=1
120 ===============================================================================
121 *vim-markdown-mappings*
124 The following work on normal and visual modes:
127 - 'gx': open the link under the cursor in the same browser as the standard
128 'gx' command. '<Plug>Markdown_OpenUrlUnderCursor'
130 The standard 'gx' is extended by allowing you to put your cursor anywhere
133 For example, all the following cursor positions will work:
135 [Example](http://example.com)
143 Known limitation: does not work for links that span multiple lines.
146 - ']]': go to next header. '<Plug>Markdown_MoveToNextHeader'
149 - '[[': go to previous header. Contrast with ']c'.
150 '<Plug>Markdown_MoveToPreviousHeader'
153 - '][': go to next sibling header if any.
154 '<Plug>Markdown_MoveToNextSiblingHeader'
157 - '[]': go to previous sibling header if any.
158 '<Plug>Markdown_MoveToPreviousSiblingHeader'
161 - ']c': go to Current header. '<Plug>Markdown_MoveToCurHeader'
164 - ']u': go to parent header (Up). '<Plug>Markdown_MoveToParentHeader'
166 This plugin follows the recommended Vim plugin mapping interface, so to change
167 the map ']u' to 'asdf', add to your '.vimrc':
169 map asdf <Plug>Markdown_MoveToParentHeader
171 To disable a map use:
173 map <Plug> <Plug>Markdown_MoveToParentHeader
175 ===============================================================================
176 *vim-markdown-commands*
182 Decrease level of all headers in buffer: 'h2' to 'h1', 'h3' to 'h2', etc.
184 If range is given, only operate in the range.
186 If an 'h1' would be decreased, abort.
188 For simplicity of implementation, Setex headers are converted to Atx.
191 - ':HeaderIncrease': Analogous to ':HeaderDecrease', but increase levels
197 Convert all Setex style headers in buffer to Atx.
199 If a range is given, e.g. hit ':' from visual mode, only operate on the
203 - ':TableFormat': Format the table under the cursor like this [7].
205 Requires Tabular [8].
207 The input table _must_ already have a separator line as the second line of
208 the table. That line only needs to contain the correct pipes '|', nothing
212 - ':Toc': create a quickfix vertical window navigable table of contents with
215 Hit '<Enter>' on a line to jump to the corresponding line of the markdown
219 - ':Toch': Same as ':Toc' but in an horizontal window.
222 - ':Toct': Same as ':Toc' but in a new tab.
225 - ':Tocv': Same as ':Toc' for symmetry with ':Toch' and 'Tocv'.
227 ===============================================================================
228 *vim-markdown-credits*
231 The main contributors of vim-markdown are:
233 - **Ben Williams** (A.K.A. **plasticboy**). The original developer of vim-
234 markdown. Homepage [9].
236 If you feel that your name should be on this list, please make a pull request
237 listing your contributions.
239 ===============================================================================
240 *vim-markdown-license*
243 The MIT License (MIT)
245 Copyright (c) 2012 Benjamin D. Williams
247 Permission is hereby granted, free of charge, to any person obtaining a copy of
248 this software and associated documentation files (the "Software"), to deal in
249 the Software without restriction, including without limitation the rights to
250 use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
251 of the Software, and to permit persons to whom the Software is furnished to do
252 so, subject to the following conditions:
254 The above copyright notice and this permission notice shall be included in all
255 copies or substantial portions of the Software.
257 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
258 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
259 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
260 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
261 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
262 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
265 ===============================================================================
266 *vim-markdown-references*
269 [1] http://daringfireball.net/projects/markdown/
270 [2] https://github.com/gmarik/vundle
271 [3] https://github.com/tpope/vim-pathogen
272 [4] http://packages.qa.debian.org/v/vim-addon-manager.html
273 [5] https://github.com/plasticboy/vim-markdown/archive/master.tar.gz
274 [6] https://github.com/klen/python-mode
275 [7] http://www.cirosantilli.com/markdown-styleguide/#tables
276 [8] https://github.com/godlygeek/tabular
277 [9] http://plasticboy.com/