Vim MarkDown Surrounds
This week I’ve published a Vim plugin toggling bold, italic, and strike-through elements within MarkDown files. Check the documentation for detailed getting started and usage instructions, the source code is available on GitHub. What follows is the TLDR for installation and usage…
Clone
mkdir -vp ~/git/hub/vim-utilities
cd ~/git/hub/vim-utilities
git clone git@github.com:vim-utilities/markdown-surrounds.git
Install
cd ~/git/hub/vim-utilities/markdown-surrounds
make install
Usage
Normal mode default maps are provided for toggling bold, italic, and strike-through state; either for the current word, or line, that the cursor is on.
-
<Leader>
b toggle bold state of word under cursor. -
<Leader>
B toggle bold state of line under cursor. -
<Leader>
i toggle italic state of word under cursor. -
<Leader>
I toggle italic state of line under cursor. -
<Leader>
st toggle strike-through state of current word. -
<Leader>
ST toggle strike-through state current line.