Skip to content
This repository was archived by the owner on Apr 8, 2024. It is now read-only.

Commit fed1aa9

Browse files
mappings: SPC w write to file
`SPC w` starts the `:write` command and waits for the user to enter the file name at the prompt The prompt has file name completion
1 parent 1d03bb6 commit fed1aa9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

mappings.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ return {
1212
-- second key is the lefthand side of the map
1313
["<leader><tab>"] = { "<cmd>b#<cr>", desc = "Last tab" },
1414

15+
-- Save prompting for file name
16+
["<leader>W"] = { ":write ", desc = "Save as file" },
17+
18+
1519
-- mappings seen under group name "Buffer"
1620
["<leader>b"] = { name = "Buffers" },
1721
["<leader>bn"] = { "<cmd>tabnew<cr>", desc = "New tab" },

0 commit comments

Comments
 (0)