Every one of the projects in this repository is available at the canonical
URL git://git.madduck.net/madduck/pub/<projectpath> — see
each project's metadata for the exact URL.
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.
+If you are not using any package manager, download the [tarball](https://github.com/plasticboy/vim-markdown/archive/master.tar.gz) and do this:
$ cd ~/.vim
$ tar --strip=1 -zxf vim-markdown-master.tar.gz
$ cd ~/.vim
$ tar --strip=1 -zxf vim-markdown-master.tar.gz
@@ -26,9+42,7 @@ let g:vim_markdown_folding_disabled=1
**Set Initial Foldlevel**
**Set Initial Foldlevel**
-Add the following line to your `.vimrc` to set the initial foldlevel. This
-option defaults to 0 (i.e. all folds are closed) and is ignored if folding
-is disabled.
+Add the following line to your `.vimrc` to set the initial foldlevel. This option defaults to 0 (i.e. all folds are closed) and is ignored if folding is disabled.
```vim
let g:vim_markdown_initial_foldlevel=1
```vim
let g:vim_markdown_initial_foldlevel=1
@@ -45,11+59,23 @@ The following work on normal and visual modes:
- `]c`: go to Current header.
- `]u`: go to parent header (Up).
- `]c`: go to Current header.
- `]u`: go to parent header (Up).
+## Commands
+
+The following commands currently only work for atx style headers (`#`). Pull request are welcome to extend them to Setext style headers (`===`).
+
+- `:Toc`: create a quickfix vertical window navigable table of contents with the headers.
+
+ Hit `<Enter>` on a line to jump to the corresponding line of the markdown file.
+
+- `:Toch`: Same as `:Toc` but in an horizontal window.
+- `:Toct`: Same as `:Toc` but in a new tab.
+- `:Tocv`: Same as `:Toc` for symmetry with `:Toch` and `Tocv`.
+
## Credits
The main contributors of vim-markdown are:
## Credits
The main contributors of vim-markdown are:
-- **Ben Williams** (A.K.A. **platicboy**). The original developer of vim-markdown. [Homepage](http://plasticboy.com/).
+- **Ben Williams** (A.K.A. **plasticboy**). The original developer of vim-markdown. [Homepage](http://plasticboy.com/).
If you feel that your name should be on this list, please make a pull request listing your contributions.
If you feel that your name should be on this list, please make a pull request listing your contributions.