From c79fcf86780284f5a52670d2a52a8aa0574b2c1c Mon Sep 17 00:00:00 2001 From: Fabian Schmidt Date: Wed, 24 Feb 2021 20:52:43 +0100 Subject: [PATCH] Removed window movement and prepared commands file --- lua/commands.lua | 5 +++++ lua/maps.lua | 27 ++++++++++++++------------- 2 files changed, 19 insertions(+), 13 deletions(-) create mode 100644 lua/commands.lua diff --git a/lua/commands.lua b/lua/commands.lua new file mode 100644 index 0000000..5d38a2d --- /dev/null +++ b/lua/commands.lua @@ -0,0 +1,5 @@ +-- commands.lua + +-- autocmd! User GoyoEnter Limelight +-- autocmd! User GoyoLeave Limelight! +-- command W :execute ':silent w !sudo tee % > /dev/null' | :edit! diff --git a/lua/maps.lua b/lua/maps.lua index e0af2aa..4a904ee 100644 --- a/lua/maps.lua +++ b/lua/maps.lua @@ -1,3 +1,4 @@ +-- maps.lua local function map(mode, lhs, rhs, opts) local options = {noremap = true} if opts then options = vim.tbl_extend('force', options, opts) end @@ -10,19 +11,19 @@ map('n', '', ':Goyo', {noremap = false}) -- Open and move to resized terminal map('n', 't', 'sj :terminal:res 5i', {noremap = false}) -- Enter normal mode in terminal -map('t', '', '') +map('t', '¿', '') -- Clear highlight map('n', '', 'noh') -- Move to window in any mode -map('t', 'ª', 'h') -map('t', 'º', 'j') -map('t', '∆', 'k') -map('t', '@', 'l') -map('i', 'ª', 'h') -map('i', 'º', 'j') -map('i', '∆', 'k') -map('i', '@', 'l') -map('n', 'ª', 'h') -map('n', 'º', 'j') -map('n', '∆', 'k') -map('n', '@', 'l') +-- map('t', 'ª', 'h') +-- map('t', 'º', 'j') +-- map('t', '∆', 'k') +-- map('t', '@', 'l') +-- map('i', 'ª', 'h') +-- map('i', 'º', 'j') +-- map('i', '∆', 'k') +-- map('i', '@', 'l') +-- map('n', 'ª', 'h') +-- map('n', 'º', 'j') +-- map('n', '∆', 'k') +-- map('n', '@', 'l')