-- move down by visible lines vim.keymap.set( { "n", "x" }, "j", [[v:count == 0 ? 'gj' : 'j']], { expr = true } ) -- move up by visible lines vim.keymap.set( { "n", "x" }, "k", [[v:count == 0 ? 'gk' : 'k']], { expr = true } ) -- goto start of line vim.keymap.set({ "n", "x" }, "gh", "0") -- goto end of line vim.keymap.set({ "n", "x" }, "gl", "g_") -- goto first non empty of line vim.keymap.set({ "n", "x" }, "gs", "^") vim.keymap.set({ "n", "x" }, "gG", "G")