From 9a2959b394fbe9ec15ecd7dbcc22dfe85133537e Mon Sep 17 00:00:00 2001 From: Squibid Date: Mon, 26 Jun 2023 11:40:45 -0400 Subject: comment position in binds.lua --- lua/core/binds.lua | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/lua/core/binds.lua b/lua/core/binds.lua index 0783615..638539f 100644 --- a/lua/core/binds.lua +++ b/lua/core/binds.lua @@ -23,27 +23,23 @@ end -- vim binds ------------------------------------------------------------------ g.mapleader = ' ' -- set leader key --- greatest remap ever -map('x', 'p', [["_dP]]) - --- clear search -map('n', '', ':nohlsearch:echo') - +map('x', 'p', [["_dP]]) -- greatest remap ever +map('n', '', ':nohlsearch:echo') -- clear search +map('t', '', '') -- make work in terminals -- move selected text up/down map('v', '', ":m '<-2gv=gv") map('v', '', ":m '>+1gv=gv") -- the cursor STAYS IN THE MIDDLE map('n', '', 'mzJ`zdelm z') -- when combining lines -map('n', 'n', 'nzzzv') -- searching +map('n', 'n', 'nzzzv') -- when searching map('n', 'N', 'Nzzzv') map('n', '', 'zz') -- half page jumping map('n', '', 'zz') --- execute order 111 -map('n', 'x', '!chmod +x %') +map('n', 'x', '!chmod +x %') -- execute order 111 --- add some keybinds to the file view +-- add some keybinds to the file view (netrw) a.nvim_create_autocmd('FileType', { pattern = 'netrw', callback = function() -- cgit v1.2.1