diff --git a/nvim/lua/mappings.lua b/nvim/lua/mappings.lua index 21589c9..9139801 100644 --- a/nvim/lua/mappings.lua +++ b/nvim/lua/mappings.lua @@ -13,14 +13,14 @@ map("n", "U", "", opts) -- disable U (scary behvaior) -- Scroling and finding map("n", "", "zz", opts) -- centered cursor when scrolling down map("n", "", "zz", opts) -- centered cursor when scrolling up -map('n', '/', '/zz', opts) -- centered seach result map('n', 'n', 'nzzzv') -- next search result stays centered map('n', 'N', 'Nzzzv') -- previous search result stays centered -- Saving and quitting map("n", "", ":w", opts) -- ctrl+s saves in normal ... map("i", "", ":wa", opts) -- ... and in insert mode returns to insert -map('n', 'w', ':w') -- Save with space+w -map('n', 'q', ':q') -- Quit with space+q +map('n', 'ww', ':w') -- save with space+ww +map('n', 'wq', ':wq') -- quit with space+wq +map('n', 'qq', ':qq') -- save quit with space+qq map("x", "p", "\"_dP", opts) -- preserve paste register when pasting over selection -- Directory Navigation map('n', 'cd', ':cd %:p:h:pwd') -- cd to dir of current file and show it