nvim: two new binds (<M-w> and <M-a>)
This commit is contained in:
parent
2578a84f54
commit
94a30ee7e2
1 changed files with 6 additions and 0 deletions
|
@ -80,6 +80,12 @@ vim.cmd 'nnoremap <M-W> <cmd>set wrap! wrap?<CR>'
|
|||
-- find + replace with alt S
|
||||
vim.cmd 'nnoremap <M-s> :%s//g<Left><Left>'
|
||||
|
||||
-- find + replace a word with alt S
|
||||
vim.cmd 'nnoremap <M-w> ye:%s//g<Left><Left><C-r>"/'
|
||||
|
||||
-- open current file with nvim in alacritty (useful if it gets opened in some other terminal)
|
||||
vim.cmd 'nnoremap <M-a> <cmd>!nohup alacritty -e nvim % > /dev/null 2>&1 &; disown<CR><cmd>q<CR>'
|
||||
|
||||
-- Escape to enter normal mode in the terminal
|
||||
vim.cmd 'tnoremap <C-\\> <C-\\><C-n>'
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue