sponsor Vim development Vim logo Vim Book Ad

markdown-drawer : Simplify navigation in large markdown files.

 script karma  Rating 4/1, Downloaded by 348  Comments, bugs, improvements  Vim wiki

created by
Kevin O'Neal
 
script type
utility
 
description
Keys Mappings

    o navigate to header in file.
    D mark section for cut (no effect till paste).
    p paste previously marked section below current.
    + increase header size (removes #).
    - decrease header size (adds #).

Basic Options

let g:markdrawer_prefix = " "
let g:markdrawer_goto = "o"
let g:markdrawerDelete = "D"
let g:markdrawer_width = "25"
let g:markdrawer_paste_below = "p"
let g:markdrawer_increase = "+"
let g:markdrawer_decrease = "-"
let g:markdrawer_to_delete_color = "Red"

Effect Drawer Appearance

let g:markdrawer_drawer_max_levels = 4 " max levels to display
let g:markdrawer_toc = 'index' " displays as a TOC
let g:markdrawer_toc = 'full_index' " displays as a TOC, no index reset

Mapping Recommendations

Map key to open drawer:

nnoremap <Leader>md :MarkDrawer<cr>

Commands

    :MarkDrawer activate plugin
    :MarkDrawerLevelSet 3 set the max level to display
 
install details
Unzip into your favorite package manager, or use Vim's built-in package support.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
markdown-drawer.zip 0.4 2020-05-30 7.0 Kevin O'Neal bugfix
markdown-drawer.zip 0.3 2019-12-05 7.0 Kevin O'Neal Initial upload
ip used for rating: 3.149.230.44

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github