diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-21 00:30:35 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-21 00:30:35 +1200 |
commit | c6e7ed8353f313c6414214036f6485f6984d10ce (patch) | |
tree | e3f81c8df3049281faeecfecbb8c3da56c7d8a51 /vim/autoload/markdown.vim | |
parent | Merge branch 'release/v4.35.0' (diff) | |
parent | Bump VERSION (diff) | |
download | dotfiles-4.36.0.tar.gz (sig) dotfiles-4.36.0.zip |
Merge branch 'release/v4.36.0'v4.36.0
* release/v4.36.0:
Bump VERSION
Add mappings and function for Markdown headings
Diffstat (limited to 'vim/autoload/markdown.vim')
-rw-r--r-- | vim/autoload/markdown.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vim/autoload/markdown.vim b/vim/autoload/markdown.vim new file mode 100644 index 00000000..34c7bda7 --- /dev/null +++ b/vim/autoload/markdown.vim @@ -0,0 +1,6 @@ +" Add an underline under a heading +function! markdown#Heading(char) abort + let heading = getline('.') + let underline = repeat(a:char, strlen(heading)) + call append(line('.'), underline) +endfunction |