adds key mappings
time/date mappings + CTRL+S
This commit is contained in:
parent
96100ebcda
commit
ed7a4ba03d
1 changed files with 9 additions and 0 deletions
|
@ -20,6 +20,15 @@ return {
|
|||
["<leader>b"] = { name = "Buffers" },
|
||||
-- quick save
|
||||
-- ["<C-s>"] = { ":w!<cr>", desc = "Save File" }, -- change description but the same command
|
||||
["<F5>"] = { '"=strftime("%H%M ")<CR>P' },
|
||||
["<F6>"] = { '"=strftime("date %G-%m-%d")<CR>P' },
|
||||
},
|
||||
i = {
|
||||
["<C-s>"] = { "<esc><cmd>w!<cr>a", desc = "Force write file" }, -- change description but the same command
|
||||
-- ["<F6>"] = { '<C-R>=strftime("%Y-%m-%dT%H:%M:%S%z")<C-M>', desc = "Replace with actual date&time" },
|
||||
["<F5>"] = { '<C-R>=strftime("%H%M ")<CR>' },
|
||||
["<F6>"] = { '<C-R>=strftime("date %G-%m-%d")<CR>' },
|
||||
["<F8>"] = { '<C-R>=strftime("%Y-%m-%dT%H:%M:%S%z")<C-M>', desc = "Insert actual date&time" },
|
||||
},
|
||||
t = {
|
||||
-- setting a mapping to false will disable it
|
||||
|
|
Loading…
Reference in a new issue