From c67ba08293f5a0a44645f1a3e1663abdb2051801 Mon Sep 17 00:00:00 2001 From: Nick Zana Date: Fri, 6 May 2022 23:39:42 -0400 Subject: [PATCH] Add a few navigation keybindings --- lua/keybindings.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lua/keybindings.lua b/lua/keybindings.lua index b4044f8..87232e0 100644 --- a/lua/keybindings.lua +++ b/lua/keybindings.lua @@ -3,6 +3,12 @@ local map = vim.api.nvim_set_keymap -- Avoid infinitely recursive definitions options = { noremap = true } +-- Navigation +map('n', 'gh', '0', options) -- make gh go to beginning of line +map('n', 'gl', '$', options) -- make gl go to end of line +map('n', 'gk', 'gg', options) -- make gk go to top of document +map('n', 'gj', 'G', options) -- make gj go to bottom of document + -- WINDOW MANAGEMENT -- Terminal