From 3904c82cbafca90d567d6cb0267a56488bc8d3e6 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Mon, 15 Nov 2021 21:34:29 -0800 Subject: [PATCH] nvim: new bind: alt W for toggling wrap --- .config/nvim/lua/blake/settings.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.config/nvim/lua/blake/settings.lua b/.config/nvim/lua/blake/settings.lua index 7719e1d..900e7d3 100644 --- a/.config/nvim/lua/blake/settings.lua +++ b/.config/nvim/lua/blake/settings.lua @@ -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 noh' -- Toggle spell check with alt S vim.cmd 'nnoremap set spell! spell?' +-- Toggle wrap with alt W +vim.cmd 'nnoremap set wrap! wrap?' + -- find + replace with alt S vim.cmd 'nnoremap :%s//g'