Adding a keymapping for a global find and replaced based off of file grep via telescope, which feeds into the quickfix list and uses cdo to apply substitute commands to each file and specific word instance chosen.

This commit is contained in:
2024-04-02 08:13:03 -05:00
parent 2aa5273287
commit 70ff57b800
2 changed files with 44 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ vim.keymap.set('n', 'J', 'mzJ`z')
-- Switch or close buffers in the window
vim.keymap.set('n', '<leader>n', ':bn<CR>', options)
vim.keymap.set('n', '<leader>p', ':bp<CR>', options)
vim.keymap.set('n', '<leader>d', ':bp|bd #<CR>', options)
vim.keymap.set('n', '<leader>x', ':bp|bd #<CR>', options)
-- Toggle spellcheck
vim.keymap.set('n', '<leader>s', ':set spell!<CR>', options)
@@ -56,6 +56,6 @@ vim.keymap.set('n', '<leader>em', function() cf.execute('benchmark') end)
vim.keymap.set('n', '<leader>eo', ':Lexplore<CR>', options)
vim.keymap.set('n', '<leader>rn', ':%s/<C-r><C-w>//g<Left><Left>', options)
-- vim.keymap.set('n', '<leader>rn', ':%s/<C-r><C-w>//g<Left><Left>', options)
vim.keymap.set('n', '<leader>l', ':Lazy<CR>', options)