summary refs log tree commit diff
path: root/.vim/lua/hardmode.lua
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2022-10-14 20:57:03 +0200
committerRobert Günzler <r@gnzler.io>2022-10-14 21:01:15 +0200
commit2d2009413f8be624a7cca95cf702e32d9315cbef (patch)
treef024c1b5b27b886530e86221593e3cfdc3672d7e /.vim/lua/hardmode.lua
parent6d7e524d3d7a71da2cea61b335a59e9544e2a6f7 (diff)
vim: move custom modules under internal/
Diffstat (limited to '.vim/lua/hardmode.lua')
-rw-r--r--.vim/lua/hardmode.lua10
1 files changed, 0 insertions, 10 deletions
diff --git a/.vim/lua/hardmode.lua b/.vim/lua/hardmode.lua
deleted file mode 100644
index cc71baf..0000000
--- a/.vim/lua/hardmode.lua
+++ /dev/null
@@ -1,10 +0,0 @@
--- 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'}, '<up>',      bail)
-vim.keymap.set({'n', 'v', 'i'}, '<down>',    bail)
-vim.keymap.set({'n', 'v', 'i'}, '<left>',    bail)
-vim.keymap.set({'n', 'v', 'i'}, '<right>',   bail)