https://github.com/medvind2140/vim-surround-markdown
Tiny plugin for code block tagging of Markdown files in vim
https://github.com/medvind2140/vim-surround-markdown
devops markdown vim
Last synced: 2 months ago
JSON representation
Tiny plugin for code block tagging of Markdown files in vim
- Host: GitHub
- URL: https://github.com/medvind2140/vim-surround-markdown
- Owner: Medvind2140
- Created: 2024-10-29T15:57:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-29T21:07:28.000Z (over 1 year ago)
- Last Synced: 2025-03-01T16:48:15.660Z (over 1 year ago)
- Topics: devops, markdown, vim
- Language: Vim Script
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vim-surround-markdown
Simple plugin - Tagging of markdown code blocks!

## Usage
### Block Surround
1. Select the text you want to surround in visual mode.
2. Press `_s`.
3. Enter the language for the code block when prompted.
The selected text will be surrounded with Markdown code block tags for the specified language.
### Block Remove
1. Move cursor within a code block
2. Press `_r`
The tags surrounding the codeblock will be removed
## Installation
Use https://github.com/junegunn/vim-plug
In your .vimrc
```code
call plug#begin()
Plug 'Medvind2140/vim-surround-markdown'
```
```code
:source ~/.vimrc
:PlugUpdate
```
Note! Only tested on Vi IMproved 9.1