Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/orlp/vim-quick-replace
A quick find/replace plugin for Vim.
https://github.com/orlp/vim-quick-replace
Last synced: 3 days ago
JSON representation
A quick find/replace plugin for Vim.
- Host: GitHub
- URL: https://github.com/orlp/vim-quick-replace
- Owner: orlp
- Created: 2021-02-27T15:43:25.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-27T15:53:18.000Z (almost 4 years ago)
- Last Synced: 2024-11-22T05:05:48.681Z (2 months ago)
- Language: Vim script
- Size: 2.93 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- my-awesome-github-stars - orlp/vim-quick-replace - A quick find/replace plugin for Vim. (Vim Script)
README
# vim-quick-replace
A plugin to do some quick find/replace actions smooth as butter.
![Gif](https://i.imgur.com/wEX6O1w.gif)
Requires tpope's vim-repeat plugin. But at the time of writing it
has a bug, so I offer the following patched version: https://github.com/orlp/vim-repeatThis Vim plugin offers the following commands you can map:
(QuickReplaceWord)
Start a quick replace using the word underneath the cursor.
Type your replacement and then use `.` and `n` to repeat the
replacement on other matches.(QuickReplaceSelection)
Start a quick replace using the current visual mode selection.
Type your replacement and then use `.` and `n` to repeat the
replacement on other matches.(StartWordSearch)
Starts a search (but doesn't immediately move to the next match)
for the word underneath the cursor.(StartSelectionSearch)
Starts a search (but doesn't immediately move to the next match)
for the current visual selection.(QuickReplaceWordBackward)
(QuickReplaceSelectionBackward)
(StartWordSearchBackward)
(StartSelectionSearchBackward)These all do the same as their above counterparts but search
backwards (like `#` and `?` do compared to `*` and `/`).My personal mappings to use this plugins are:
nmap r (QuickReplaceWord)
nmap R (QuickReplaceWordBackward)
xmap r (QuickReplaceSelection)
xmap R (QuickReplaceSelectionBackward)
xmap * (StartSelectionSearch):call feedkeys('n')
xmap # (StartSelectionSearchBackward):call feedkeys('n')