Skip to content

Commit

Permalink
Added source to vim's hard mode
Browse files Browse the repository at this point in the history
  • Loading branch information
missingcharacter committed Mar 29, 2024
1 parent af55cd1 commit c4c0da8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nvim/lua/missingcharacter/remap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ end)
vim.keymap.set("n", "<F3>", "<cmd>set paste!<CR>")

-- Disable arrow keys in normal and insert mode
-- Source: https://www.mailslurp.com/blog/vim-hard-mode/
local hardmode = true
if hardmode then
-- Show an error message if a disabled key is pressed
Expand Down

0 comments on commit c4c0da8

Please sign in to comment.