An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# vim-surround-markdown
Simple plugin - Tagging of markdown code blocks!

![vim-surround-markdown](https://github.com/user-attachments/assets/63fe592f-308c-4c8d-bc3c-bdee3442656f)

## 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