From 2d2009413f8be624a7cca95cf702e32d9315cbef Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Fri, 14 Oct 2022 20:57:03 +0200 Subject: vim: move custom modules under internal/ --- .vim/lua/internal/hardmode.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .vim/lua/internal/hardmode.lua (limited to '.vim/lua/internal/hardmode.lua') diff --git a/.vim/lua/internal/hardmode.lua b/.vim/lua/internal/hardmode.lua new file mode 100644 index 0000000..cc71baf --- /dev/null +++ b/.vim/lua/internal/hardmode.lua @@ -0,0 +1,10 @@ +-- hard mode means we're not using the arrow keys! + +local bail = function() + vim.cmd [[silent! echohl ErrorMsg | echo "HARD MODE: hjkl operation only" | echohl None]] +end + +vim.keymap.set({'n', 'v', 'i'}, '', bail) +vim.keymap.set({'n', 'v', 'i'}, '', bail) +vim.keymap.set({'n', 'v', 'i'}, '', bail) +vim.keymap.set({'n', 'v', 'i'}, '', bail) -- cgit 1.4.1