nvim: new bind: alt W for toggling wrap
This commit is contained in:
parent
38727a311d
commit
3904c82cba
1 changed files with 6 additions and 0 deletions
|
@ -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>'
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue