From 16260678dd0a03abae108dd255a479ccac4a2dd6 Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Wed, 22 Jan 2025 21:31:32 -0600 Subject: [PATCH] fix: use different keymap for word wrap toggling --- README.md | 1 - lua/vim-options.lua | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index fdfc9c9..dd53432 100644 --- a/README.md +++ b/README.md @@ -3,4 +3,3 @@ This is my neovim configuration. It is - as with all of us - a work in progress. If you are curious about getting started with Neovim I couldn't recommend this course from Typecraft enough: [Neovim from Scratch](https://typecraft.dev/neovim-for-noobs/) - diff --git a/lua/vim-options.lua b/lua/vim-options.lua index 39d4cdb..9ed20d1 100644 --- a/lua/vim-options.lua +++ b/lua/vim-options.lua @@ -16,7 +16,7 @@ vim.opt.wrap = false vim.keymap.set("n", "y", '"+y', { desc = "Yank to system clipboard" }) vim.keymap.set("v", "y", '"+y', { desc = "Yank to system clipboard" }) -vim.keymap.set("n", "tw", ":set wrap!", { desc = "Toggle word wrap" }) +vim.keymap.set("n", "ww", ":set wrap!", { desc = "Toggle word wrap" }) -- if i am in insert mode and i spam one of these keys -- i probably want to escape insert mode