https://github.com/orlp/vim-quick-replace
A quick find/replace plugin for Vim.
https://github.com/orlp/vim-quick-replace
Last synced: 4 months 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 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-27T15:53:18.000Z (almost 5 years ago)
- Last Synced: 2025-03-16T06:13:18.457Z (9 months ago)
- Language: Vim script
- Size: 2.93 KB
- Stars: 6
- Watchers: 2
- 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.

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-repeat
This 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')