From e5c034152cbefaa90f2850ce551ac94e806bb78e Mon Sep 17 00:00:00 2001 From: srdusr Date: Sat, 12 Nov 2022 23:47:07 +0200 Subject: New binding to set current working directory '%:p:h' --- lua/user/keys.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/user/keys.lua') diff --git a/lua/user/keys.lua b/lua/user/keys.lua index 47464b8..5a17635 100644 --- a/lua/user/keys.lua +++ b/lua/user/keys.lua @@ -29,7 +29,7 @@ vim.g.mapleader = ";" map("i", "jk", "") map("n", "m", ":messages") - +map("n", "cd", ":cd %:p:h:pwd") -- Print last error message or use these commands | v:errmsgv | :statusmsg | :h execute() | --nnoremap x :put =trim(execute(input(':', '', 'command'))) -- Press x, then enter your command, such as 5mess and press . The last five message lines will be added to the current buffer. -- cgit v1.2.3