From 668d0be41fc65932faf9a3be92aad4ed07724881 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sun, 31 Oct 2021 17:32:46 +0300 Subject: nvim: fix ' mapping --- .config/nvim/lua/mappings.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.config') diff --git a/.config/nvim/lua/mappings.lua b/.config/nvim/lua/mappings.lua index 234f051..df7e3d3 100644 --- a/.config/nvim/lua/mappings.lua +++ b/.config/nvim/lua/mappings.lua @@ -39,7 +39,7 @@ map('n', '*', ':keepjumps normal! mi*`i') map('n', '#', ':keepjumps normal! mi#`i ') -- save file as sudo on files that require root permission -map('c', 'w!!', 'execute "silent! write !sudo tee % >/dev/null" edit!') +map('c', 'w!!', 'execute "silent! write !sudo tee % >/dev/null" edit!') -- replace ex mode with gq (format lines) map('n', 'Q', 'gq') @@ -52,7 +52,7 @@ map('n', 'S', ':%s//g') -- if you like "Y" to work from the cursor to the end of line (which is more -- logical, but not Vi-compatible) -map('n', 'Y', 'y$') +map('n', 'Y', 'y$', { noremap = false }) -- jump to buffer map('n', 'b', ':ls:b') @@ -111,7 +111,7 @@ plugmap('n', '', ':TagbarToggle') plugmap('n', '`', 'Sneak_s') plugmap('n', '`', 'Sneak_s') plugmap('n', '`', 'Sneak_S') -plugmap('n', "'", '`') +map('n', "'", '`') -- use the special yoink paste that rotates plugmap('n', 'p', '(YoinkPaste_p)') -- cgit v1.2.3-61-g4310