![]() I've even considered adding this bullets plugin, but it feels like the better option would be to prevent vim-pandoc from getting in the way of my original markdown plugin which was working great. The vim-pandoc-syntax plugin which is supposed to pair with vim-pandoc does not have this set be default, and I'm not sure how to get it to reproduce the autogenerate list item functionality that I used to have. One feature I really miss is where you have a list and it auto generates the next bullet point etc., when you create a new line in the list. What I've settled for instead is using the vim-pandoc-syntax plugin as well, simply accepting that all the other markdown plugins won't work as expected. The issue I'm having has also been raised in the vim-pandoc GitHub issue 70 and issue 382, but none of the suggestions there seem to help. If anyone has any ideas about how to proceed, I'd greatly appreciate the help. It looks like this is the way to achieve this result: let g:pandoc#filetypes#pandoc_markdown = 0īy default, the above is set to 1, but setting it to 0 has not helped. If only I could get vim-pandoc not to do this, I'd be all set. In any case, as soon as install the vim-pandoc plugin, my syntax highlighting goes out the door in markdown. The trouble seems to be that vim-pandoc sets markdown files to be recognised by vim as pandoc files which prevents the vim-markdown plugin from running syntax highlighting etc. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.I've been trying to get the vim-pandoc plugin to play nice with markdown nvim, and have not been successful in finding help so far. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: If you feel that your name should be on this list, please make a pull request listing your contributions. 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. A small Vim plugin for previewing markdown files in a browser. :Tocv: Same as :Toc for symmetry with :Toch and :Tocv. The aim of this plugin is to be light weight with minimal dependencies. :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.
0 Comments
Leave a Reply. |