nvim: new bind: alt W for toggling wrap

This commit is contained in:
PowerUser64 2021-11-15 21:34:29 -08:00
parent 38727a311d
commit 3904c82cba

View file

@ -78,12 +78,18 @@ command! WQA wqa
-- Macro for opening a new terminal
vim.cmd 'command! Term tabnew | term'
-- Genereate ctags
vim.cmd 'command! MakeTags !ctags -R .'
-- Press Alt h to toggle highlighting on/off, and show current value.
vim.cmd 'nnoremap <M-h> <cmd>noh<CR>'
-- Toggle spell check with alt S
vim.cmd 'nnoremap <M-S> <cmd>set spell! spell?<CR>'
-- Toggle wrap with alt W
vim.cmd 'nnoremap <M-W> <cmd>set wrap! wrap?<CR>'
-- find + replace with alt S
vim.cmd 'nnoremap <M-s> :%s//g<Left><Left>'