home
NOTE: Under Construction - I'm in the middle of upgrading my site and lots of stuff is kinda broken. Please forgive the mess.

Neovim Save File Key Mapping

February 2024
Code
-- Save a file with ``s`` in normal mode
vim.keymap.set('n', 's', ':wa<cr>', { desc = "Save File" })

-- Save file with hotkey 
vim.keymap.set('n', '<M-S>', ':wa<cr>', {desc = "Save file" })
vim.keymap.set('i', '<M-S>', '<ESC>:wa<cr>', {desc = "Save file" })
═══ § ═══