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.
- Host: GitHub
- URL: https://github.com/acro5piano/vim-jsx-replace-tag
- Owner: acro5piano
- Created: 2018-08-28T02:59:28.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-29T17:56:37.000Z (almost 7 years ago)
- Last Synced: 2025-02-10T00:26:06.715Z (4 months ago)
- Topics: jsx, react, tag, vim, vim-plugin
- Language: Vim script
- Homepage:
- Size: 457 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vim-jsx-replace-tag
a Vim plugin to replace jsx tag with interactive UI.
# Demo

# 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