Added specific line searc/replace keybinding
This commit is contained in:
parent
717773a1e9
commit
88f1c71507
1 changed files with 3 additions and 0 deletions
|
|
@ -51,6 +51,9 @@ keymap('i', 'ii', '<Esc>', {})
|
||||||
-- Alias replace all to shift + S
|
-- Alias replace all to shift + S
|
||||||
vim.cmd[[nnoremap S :%s///gI<Left><Left><Left><Left>]]
|
vim.cmd[[nnoremap S :%s///gI<Left><Left><Left><Left>]]
|
||||||
|
|
||||||
|
-- Alias replace all on current line (shift + Y)
|
||||||
|
vim.cmd[[nnoremap Y :.,.s///g<Left><Left><Left>]]
|
||||||
|
|
||||||
-- Format C and C++ Code using cp alias ( thus far preferable to Neoformat)
|
-- Format C and C++ Code using cp alias ( thus far preferable to Neoformat)
|
||||||
vim.cmd[[nnoremap cp :silent :ClangFormat]]
|
vim.cmd[[nnoremap cp :silent :ClangFormat]]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue