InstantRename is a small Neovim plugin that automatically replaces the :s
command with a global substitute command in command-line mode.
Using lazy.nvim:
{
'mei28/instant_rename.nvim',
event = { 'ModeChanged', 'CmdlineChanged' }, -- for lazy loading
config = function()
require('instant_rename')
end
}
- Simply type
:s
in command-line mode, and it will be automatically expanded to:%s///g
.
https://zenn.dev/vim_jp/articles/2023-06-30-vim-substitute-tips