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

https://github.com/acro5piano/vim-jsx-replace-tag

A Vim plugin to edit jsx both opening and closing tag interactively.
https://github.com/acro5piano/vim-jsx-replace-tag

jsx react tag vim vim-plugin

Last synced: 3 months ago
JSON representation

A Vim plugin to edit jsx both opening and closing tag interactively.

Awesome Lists containing this project

README

        

# vim-jsx-replace-tag

a Vim plugin to replace jsx tag with interactive UI.

# Demo

![](https://github.com/acro5piano/jsx-autoedit/blob/master/demo.gif)

# Install

```
Plug 'acro5piano/vim-jsx-replace-tag'
```

# Usage

- Run `:JSXReplaceTag` where cursor is the same line of the tag to edit.
- Input new tag name then press Return key
- You can cancel editing with ``

# Example setting

In your `.vimrc`,

```vim
nnoremap rt :JSXReplaceTag
```

# Thanks

A lot of code was ported from `vim-jsx-utils`. Really thanks!

https://github.com/samuelsimoes/vim-jsx-utils