The main contributors of vim-markdown are: :InsertNToc: Same as :InsertToc, but the format of h2 headers in the table of contents is a numbered list, rather than a bulleted list. :InsertToc: Insert table of contents at the current line.Īn optional argument can be used to specify how many levels of headers to display in the table of content, e.g., to display up to and including h3, use :InsertToc 3. :Tocv: Same as :Toc for symmetry with :Toch and :Tocv. :Toch: Same as :Toc but in an horizontal window. Hit on a line to jump to the corresponding line of the markdown file. :Toc: create a quickfix vertical window navigable table of contents with the headers. That line only needs to contain the correct pipes |, nothing else is required. The input table must already have a separator line as the second line of the table.
:TableFormat: Format the table under the cursor like this. hit : from visual mode, only operate on the range. :HeaderIncrease: Analogous to :HeaderDecrease, but increase levels instead.Ĭonvert all Setex style headers in buffer to Atx. If range is given, only operate in the range.įor simplicity of implementation, Setex headers are converted to Atx. The following requires :filetype plugin on.ĭecrease level of all headers in buffer: h2 to h1, h3 to h2, etc. vimrc to disable the folding configuration: Options Disable FoldingĪdd the following line to your. Try :help concealcursor and :help conceallevel for details. Options are available to disable or change concealing. If you put your cursor on the concealed line, the conceal goes away.
ConcealingĬoncealing is set for some syntax such as bold, italic, code block and link.Ĭoncealing lets you conceal text with other text. Try :help fold-expr and :help fold-commands for details. Options are available to disable folding or change folding style. zC: close a fold your cursor is on recursively.zA: open a fold your cursor is on recursively.zm: increases fold level throughout the buffer.zr: reduces fold level throughout the buffer.The following commands are useful to open and close folds: Tar -strip=1 -zxf Basic usage Foldingįolding is enabled for headers by default.