1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-10 19:41:15 +02:00

nvim: added vim-abolish

This commit is contained in:
2024-02-06 23:21:28 +01:00
parent f8b78bbedb
commit cddab90faf
3 changed files with 37 additions and 28 deletions

View File

@@ -54,9 +54,9 @@ m.nnoremap("<leader>c", ':w! | !compiler <c-r>%<CR>', 'Compile: current file')
-- save file as sudo on files that require root permission
m.cnoremap("w!!", 'execute "silent! write !sudo tee % >/dev/null" <bar> edit!', 'Write: overwrite file over with sudo')
-- easy substitution for whole file and line, visual mode
m.nnoremap("<leader>sa", ':%s//g<Left><Left>', 'Substitute: free form')
m.nnoremap("<leader>ss", ':%s/\\<<C-r><C-w>\\>//g<Left><Left>', 'Substitute: word under cursor')
-- tpope/vim-abolish
m.nnoremap("<leader>sa", ':%S//g<Left><Left>', 'Substitute: free form')
m.nnoremap("<leader>ss", ':%S/\\<<C-r><C-w>\\>//g<Left><Left>', 'Substitute: word under cursor')
-- stevearc/aerial.nvim
m.nmap('<F3>', ':AerialToggle!<CR>', 'CTags: toggle')

View File

@@ -0,0 +1,8 @@
return {
-- better substitutions
{
'vim-abolish',
config = function ()
end
}
}